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. You must use a template loader to use template constructs like ``{% extends %}`` and ``{% include %}``. The loader caches all templates after they are loaded the first time.
Definition at line 308 of file template.py.
def rosbridge_tools.tornado.template.BaseLoader.__init__ | ( | self, | |
autoescape = _DEFAULT_AUTOESCAPE , |
|||
namespace = None |
|||
) |
``autoescape`` must be either None or a string naming a function in the template namespace, such as "xhtml_escape".
Reimplemented in rosbridge_tools.tornado.template.DictLoader, and rosbridge_tools.tornado.template.Loader.
Definition at line 315 of file template.py.
def rosbridge_tools.tornado.template.BaseLoader._create_template | ( | self, | |
name | |||
) | [private] |
Reimplemented in rosbridge_tools.tornado.template.DictLoader, and rosbridge_tools.tornado.template.Loader.
Definition at line 346 of file template.py.
def rosbridge_tools.tornado.template.BaseLoader.load | ( | self, | |
name, | |||
parent_path = None |
|||
) |
Loads a template.
Definition at line 338 of file template.py.
Resets the cache of compiled templates.
Definition at line 329 of file template.py.
def rosbridge_tools.tornado.template.BaseLoader.resolve_path | ( | self, | |
name, | |||
parent_path = None |
|||
) |
Converts a possibly-relative path to absolute (used internally).
Reimplemented in rosbridge_tools.tornado.template.DictLoader, and rosbridge_tools.tornado.template.Loader.
Definition at line 334 of file template.py.
Definition at line 317 of file template.py.
Definition at line 317 of file template.py.
Definition at line 317 of file template.py.
Definition at line 317 of file template.py.