class documentation

class ModuleTemplate(Template):

View In Hierarchy

A Template which is constructed given an existing Python module.

e.g.:

t = Template("this is a template")
f = file("mymodule.py", "w")
f.write(t.code)
f.close()

import mymodule

t = ModuleTemplate(mymodule)
print(t.render())
Method __init__ Undocumented
Instance Variable bytestring​_passthrough Undocumented
Instance Variable callable​_ Undocumented
Instance Variable disable​_unicode Undocumented
Instance Variable enable​_loop Undocumented
Instance Variable encoding​_errors Undocumented
Instance Variable error​_handler Undocumented
Instance Variable filename Undocumented
Instance Variable format​_exceptions Undocumented
Instance Variable include​_error​_handler Undocumented
Instance Variable input​_encoding Undocumented
Instance Variable lookup Undocumented
Instance Variable module Undocumented
Instance Variable module​_id Undocumented
Instance Variable output​_encoding Undocumented
Instance Variable uri Undocumented

Inherited from Template:

Method get​_def Return a def of this template as a .DefTemplate.
Method list​_defs return a list of defs in the template.
Method render Render the output of this template as a string.
Method render​_context Render this .Template with the given context.
Method render​_unicode Render the output of this template as a unicode object.
Method ​_compile​_from​_file Undocumented
Method ​_get​_def​_callable Undocumented
Method ​_setup​_cache​_args Undocumented
Method has​_def Undocumented
Instance Variable ​_code Undocumented
Instance Variable ​_source Undocumented
Instance Variable buffer​_filters Undocumented
Instance Variable cache​_args Undocumented
Instance Variable cache​_enabled Undocumented
Instance Variable cache​_impl Undocumented
Instance Variable default​_filters Undocumented
Instance Variable future​_imports Undocumented
Instance Variable imports Undocumented
Instance Variable lexer​_cls Undocumented
Instance Variable module​_directory Undocumented
Instance Variable module​_writer Undocumented
Instance Variable preprocessor Undocumented
Instance Variable strict​_undefined Undocumented
Property cache Undocumented
Property cache​_dir Undocumented
Property cache​_type Undocumented
Property cache​_url Undocumented
Property code Return the module source code for this .Template.
Property last​_modified Undocumented
Property reserved​_names Undocumented
Property source Return the template source code for this .Template.
def __init__(self, module, module_filename=None, template=None, template_filename=None, module_source=None, template_source=None, output_encoding=None, encoding_errors='strict', disable_unicode=False, bytestring_passthrough=False, format_exceptions=False, error_handler=None, lookup=None, cache_args=None, cache_impl='beaker', cache_enabled=True, cache_type=None, cache_dir=None, cache_url=None, include_error_handler=None):

Undocumented

bytestring_passthrough =
callable_ =

Undocumented

disable_unicode =
enable_loop =

Undocumented

encoding_errors =
error_handler =

Undocumented

filename =

Undocumented

format_exceptions =
include_error_handler =
input_encoding =

Undocumented

lookup =

Undocumented

module =

Undocumented

module_id =

Undocumented

output_encoding =
uri =

Undocumented