class documentation

class TemplateNamespace(Namespace):

View In Hierarchy

A .Namespace specific to a .Template instance.
Method __getattr__ Undocumented
Method __init__ Undocumented
Method ​_get​_star Undocumented
Instance Variable ​_templateuri Undocumented
Instance Variable callables Undocumented
Instance Variable context The .Context object for this .Namespace.
Instance Variable inherits Undocumented
Instance Variable name Undocumented
Instance Variable template The .Template object referenced by this .Namespace, if any.
Property filename The path of the filesystem file used for this .Namespace's module or template.
Property module The Python module referenced by this .Namespace.
Property uri The URI for this .Namespace's template.

Inherited from Namespace:

Method get​_cached Return a value from the .Cache referenced by this .Namespace object's .Template.
Method get​_namespace Return a .Namespace corresponding to the given uri.
Method get​_template Return a .Template from the given uri.
Method include​_file Include a file at the given uri.
Method ​_populate Undocumented
Property attr Access module level attributes by name.
Property cache Return the .Cache object referenced by this .Namespace object's .Template.
def __getattr__(self, key):

Undocumented

def __init__(self, name, context, template=None, templateuri=None, callables=None, inherits=None, populate_self=True, calling_uri=None):

Undocumented

def _get_star(self):

Undocumented

_templateuri =

Undocumented

callables =

Undocumented

context =

The .Context object for this .Namespace.

Namespaces are often created with copies of contexts that contain slightly different data, particularly in inheritance scenarios. Using the .Context off of a .Namespace one can traverse an entire chain of templates that inherit from one-another.

inherits =

Undocumented

name =

Undocumented

template =
The .Template object referenced by this .Namespace, if any.
@property
filename =
The path of the filesystem file used for this .Namespace's module or template.
@property
module =

The Python module referenced by this .Namespace.

If the namespace references a .Template, then this module is the equivalent of template.module, i.e. the generated module for the template.

@property
uri =

The URI for this .Namespace's template.

I.e. whatever was sent to .TemplateLookup.get_template().

This is the equivalent of .Template.uri.