Public Member Functions | Public Attributes | Private Member Functions
tornado.template.BaseLoader Class Reference
Inheritance diagram for 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 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 tornado.template.DictLoader, and tornado.template.Loader.

Definition at line 315 of file template.py.


Member Function Documentation

def tornado.template.BaseLoader._create_template (   self,
  name 
) [private]

Reimplemented in tornado.template.DictLoader, and tornado.template.Loader.

Definition at line 346 of file template.py.

def 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 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 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_server
Author(s): Jonathan Mace
autogenerated on Thu Aug 27 2015 14:50:40