python-coffin

Jinja2 adapter for Django - Python 2.x

Description

Coffin is a Jinja2 adapter for Django. Coffin currently makes the following Django tags available in Jinja:
 * {% cache %} - has currently an incompatibility: The second argument (the
   fragment name) needs to be specified with surrounding quotes if it is
   supposed to be a literal string, according to Jinja2 syntax. It will
   otherwise be considered an identifier and resolved as a variable.
 * {% load %} - is actually a no-op in Coffin, since templatetag libraries are
   always loaded. See also "Custom Filters and extensions".
 * {% spaceless %}
 * {% url %} - additionally, a view|url() filter is also available. Or use
   view|url() for Django 1.5 style lookups by the value of view.
 * {% with %}
 * {% csrf_token %}

Django filters that are ported in Coffin:
 * date
 * floatformat
 * pluralize (expects an optional second parameter rather than the comma
   syntax)
 * time
 * timesince
 * timeuntil
 * truncatewords
 * truncatewords_html

This package contains the Python 2.x module.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/coffin/coffin


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python-coffin