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.

Definition at line 289 of file template.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.


Member Data Documentation

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.


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


roswww
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:30