Django template filter for splitting a list into columns.
Project description
Django template filter for splitting a list into columns.
Documentation
The full documentation is at https://django-columns.readthedocs.org.
Quickstart
Install the package. At the command line:
$ pip install django-columns
Add columns to INSTALLED_APPS.
Split a list into 2 lists, to fill 2 columns:
{% load columns %} <div class="row"> {% for col in mylist|columns:3 %} <div class="col-md-4"> {% for item in col %} <div class="item">{{ item }}</div> {% endfor %} </div><!-- /col-md-4 --> {% endfor %} </div><!-- /row -->
History
0.1.0 (2014-05-12)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-columns-0.1.0.tar.gz
(5.6 kB
view details)
File details
Details for the file django-columns-0.1.0.tar.gz.
File metadata
- Download URL: django-columns-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd5ffb9b1e31908dba058344fc0e7def2367f13b6fa4c9a6b801e29fc864fdf9
|
|
| MD5 |
695f7438e9fda0f752c9ad3ac61041ea
|
|
| BLAKE2b-256 |
ac5a5178d6f6d070e91877b163a21f9990b57d62c9f146a41c8e3fcf0493e5b5
|