Public Member Functions | |
def | __init__ |
def | resolve_path |
Public Attributes | |
root | |
Private Member Functions | |
def | _create_template |
A template loader that loads from a single root directory. You must use a template loader to use template constructs like {% extends %} and {% include %}. Loader caches all templates after they are loaded the first time.
Definition at line 331 of file template.py.
def tornado.template.Loader.__init__ | ( | self, | |
autoescape, | |||
namespace | |||
) |
Creates a template loader. root_directory may be the empty string if this loader does not use the filesystem. autoescape must be either None or a string naming a function in the template namespace, such as "xhtml_escape".
Reimplemented from tornado.template.BaseLoader.
Definition at line 338 of file template.py.
def tornado.template.Loader._create_template | ( | self, | |
name | |||
) | [private] |
Reimplemented from tornado.template.BaseLoader.
Definition at line 353 of file template.py.
def tornado.template.Loader.resolve_path | ( | self, | |
name, | |||
parent_path = None |
|||
) |
Converts a possibly-relative path to absolute (used internally).
Reimplemented from tornado.template.BaseLoader.
Definition at line 342 of file template.py.
Definition at line 338 of file template.py.