web.web.template.Render

Package web :: Package web :: Module template :: Class Render |
[hide private]
[frames] | no frames]

# Class Render

source code

Known Subclasses:
  - GAE_Render

    The most preferred way of using templates.

        render = web.template.render('templates')
        print render.foo()

    Optional parameter can be `base` can be used to pass output of
    every template through the base template.

        render = web.template.render('templates', base='layout')

Instance Methods | [hide private]
__init__(self, loc=`'``templates``'`, cache=None, base=None, **keywords) | source code
_add_global(self, obj, name=None) Add a global to this rendering instance. | source code
_lookup(self, name) | source code
_load_template(self, name) | source code
_findfile(self, path_prefix) | source code
_template(self, name) | source code
__getattr__(self, name) | source code