Package dap :: Package responses :: Package html :: Module templess :: Class template
[hide private]
[frames] | no frames]

Class template

source code

object --+
         |
        template

a Templess template

call 'unicode()' to get a unicode string, 'generate()' to get a generator that yields bits of string, and 'render()' to get a node

Instance Methods [hide private]
  __init__(self, data, charset='UTF-8')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  render_to_string(self, context, charset='UTF-8')
returns a complete string with the rendered template
  unicode(self, context)
returns a unicode rendering of the template
  generate(self, context)
returns a generator that generates bits of string on demand
  render(self, context)
render the tree to a 'normal' node

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, data, charset='UTF-8')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

render_to_string(self, context, charset='UTF-8')

source code 
returns a complete string with the rendered template

unicode(self, context)

source code 
returns a unicode rendering of the template

generate(self, context)

source code 
returns a generator that generates bits of string on demand

render(self, context)

source code 

render the tree to a 'normal' node

processes all templess directives and returns the resulting tree