cc1  v2.1
CC1 source code docs
 All Classes Namespaces Files Functions Variables Pages
src.wi.commontags.templatetags.templatetags.VerbatimNode Class Reference

jQuery templates use constructs like: More...

Public Member Functions

def __init__
def render

Public Attributes

 text_and_nodes

Detailed Description

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.

Constructor & Destructor Documentation

def src.wi.commontags.templatetags.templatetags.VerbatimNode.__init__ (   self,
  text_and_nodes 
)

Definition at line 99 of file templatetags.py.

Member Function Documentation

def src.wi.commontags.templatetags.templatetags.VerbatimNode.render (   self,
  context 
)

Definition at line 102 of file templatetags.py.

Member Data Documentation

src.wi.commontags.templatetags.templatetags.VerbatimNode.text_and_nodes

Definition at line 100 of file templatetags.py.


The documentation for this class was generated from the following file: