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

List of all members.

Public Member Functions

def __init__
def resolve_path

Public Attributes

 root

Private Member Functions

def _create_template

Detailed Description

A template loader that loads from a single root directory.

You must use a template loader to use template constructs like
{% extends %} and {% include %}. Loader caches all templates after
they are loaded the first time.

Definition at line 331 of file template.py.


Constructor & Destructor Documentation

def tornado.template.Loader.__init__ (   self,
  autoescape,
  namespace 
)
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 from tornado.template.BaseLoader.

Definition at line 338 of file template.py.


Member Function Documentation

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

Reimplemented from tornado.template.BaseLoader.

Definition at line 353 of file template.py.

def tornado.template.Loader.resolve_path (   self,
  name,
  parent_path = None 
)
Converts a possibly-relative path to absolute (used internally).

Reimplemented from tornado.template.BaseLoader.

Definition at line 342 of file template.py.


Member Data Documentation

Definition at line 338 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