summaryrefslogtreecommitdiffstats
path: root/coffin/contrib/markup/templatetags/markup.py
blob: 0d6b92f9bdcac2c49151fd39b6f4be7d323b4c08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Makes the template filters from the ``django.contrib.markup`` app
available to both the Jinja2 and Django engines.

In other words, adding ``coffin.contrib.markup`` to your INSTALLED_APPS
setting will enable the markup filters not only through Coffin, but
also through the default Django template system.
"""

from coffin.template import Library as CoffinLibrary
from django.contrib.markup.templatetags.markup import register


# Convert Django's Library into a Coffin Library object, which will
# make sure the filters are correctly ported to Jinja2.
register = CoffinLibrary.from_django(register)