Skip to content

Instantly share code, notes, and snippets.

View LevBravE's full-sized avatar

LevBravE LevBravE

  • Russia, Moscow
View GitHub Profile
@LevBravE
LevBravE / verbatim_templatetag.py
Created December 7, 2012 06:48 — forked from paulsmith/verbatim_templatetag.py
verbatim Django template tag
"""
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