Home | Trees | Indices | Help |
---|
|
Load template from a file.
When loading a template from a file, it's possible to including other templates (by using 'include' in the template). But for simplicity and security, all included templates have to be in the same directory! (see ``allowed_path``)
|
|||
|
|||
|
|
Init the loader. :Parameters:
:Exceptions:
|
Load a template from a file. Check if filename is allowed and return its contens in unicode. :Parameters: - `filename`: filename of the template without path :Returns: the contents of the template-file in unicode :Exceptions: - `ValueError`: if `filename` contains a path |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Jun 12 09:10:10 2013 | http://epydoc.sourceforge.net |