Public Member Functions | Public Attributes | Private Member Functions
rosbridge_tools.tornado.template.BaseLoader Class Reference
Inheritance diagram for rosbridge_tools.tornado.template.BaseLoader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def load
def reset
def resolve_path

Public Attributes

 autoescape
 lock
 namespace
 templates

Private Member Functions

def _create_template

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


rosbridge_tools
Author(s): Jonathan Mace
autogenerated on Sat Dec 27 2014 11:25:59