Public Member Functions | |
def | __init__ |
def | load |
def | reset |
def | resolve_path |
Public Attributes | |
autoescape | |
lock | |
namespace | |
templates | |
Private Member Functions | |
def | _create_template |
Base class for template loaders.
Definition at line 289 of file template.py.
def tornado.template.BaseLoader.__init__ | ( | self, | |
autoescape = _DEFAULT_AUTOESCAPE , |
|||
namespace = None |
|||
) |
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 in tornado.template.DictLoader, and tornado.template.Loader.
Definition at line 291 of file template.py.
def tornado.template.BaseLoader._create_template | ( | self, | |
name | |||
) | [private] |
Reimplemented in tornado.template.DictLoader, and tornado.template.Loader.
Definition at line 327 of file template.py.
def tornado.template.BaseLoader.load | ( | self, | |
name, | |||
parent_path = None |
|||
) |
Loads a template.
Definition at line 319 of file template.py.
def tornado.template.BaseLoader.reset | ( | self | ) |
Resets the cache of compiled templates.
Definition at line 310 of file template.py.
def tornado.template.BaseLoader.resolve_path | ( | self, | |
name, | |||
parent_path = None |
|||
) |
Converts a possibly-relative path to absolute (used internally).
Reimplemented in tornado.template.DictLoader, and tornado.template.Loader.
Definition at line 315 of file template.py.
Definition at line 298 of file template.py.
Definition at line 298 of file template.py.
Definition at line 298 of file template.py.
Definition at line 298 of file template.py.