cc1
v2.1
CC1 source code docs
|
jQuery templates use constructs like: More...
Public Member Functions | |
def | __init__ |
def | render |
Public Attributes | |
text_and_nodes |
jQuery templates use constructs like:
{{if condition}} print something{{/if}}
This, of course, completely screws up Django templates, because Django thinks {{ and }} means something.
Wrap {% verbatim2 %} and {% endverbatim2 %} around those blocks of jQuery templates and this will try its best to output the contents with no changes.
This version of verbatim template tag allows you to use tags like url {% url 'name' %} or {% csrf_token %} within.
Definition at line 98 of file templatetags.py.
def src.wi.commontags.templatetags.templatetags.VerbatimNode.__init__ | ( | self, | |
text_and_nodes | |||
) |
Definition at line 99 of file templatetags.py.
def src.wi.commontags.templatetags.templatetags.VerbatimNode.render | ( | self, | |
context | |||
) |
Definition at line 102 of file templatetags.py.
src.wi.commontags.templatetags.templatetags.VerbatimNode.text_and_nodes |
Definition at line 100 of file templatetags.py.