| |
- exceptions.Exception
-
- TemplateRecursionLimitExceeded
- TemplateController
- TemplateDependencyRegistrar
- TemplateWrapper
class TemplateController |
|
Control communication between application, template engines, cache,
template source finder. |
|
Methods defined here:
- __init__(self, source_finder, engine_importer=None, template_cache=None, template_wrapper_class=<class PPA.Template.Controller.TemplateWrapper>, compile_dep_reg_class=<class PPA.Template.Controller.TemplateDependencyRegistrar>, interpret_dep_reg_class=<class PPA.Template.Controller.TemplateDependencyRegistrar>)
- getEngine(self, template_type)
- Import, create and return engine (cached).
- getTemplate(self, template_name, template_type=None, _recursion_limit=10)
- Dispatch the request to template engine and return compiled
template object.
|
class TemplateWrapper |
|
# XXX Problem with this class and related code: it breaks incapsulation. On the
# other hand serialization always breaks incapsulation. |
|
Methods defined here:
- __init__(self, engine, program, compile_deps, create_interpret_dep_reg)
- getProgram(self)
- interpret(self, fp=<open file '<stdout>', mode 'w'>, globals={}, locals={}, _recursion_limit=10)
| |