Skip to content

Instantly share code, notes, and snippets.

View verbatim_templatetag.py
"""
jQuery templates use constructs like:
{{if condition}} print something{{/if}}
This, of course, completely screws up Django templates,
because Django thinks {{ and }} mean something.
Wrap {% verbatim %} and {% endverbatim %} around those
blocks of jQuery templates and this will try its best
You can’t perform that action at this time.