module documentation

API and implementations for loading templates from different data sources.
Class ​Base​Loader No summary
Class ​Choice​Loader This loader works like the PrefixLoader just that no prefix is specified. If a template could not be found by one loader the next one is tried.
Class ​Dict​Loader Loads a template from a Python dict mapping template names to template source. This loader is useful for unittesting:
Class ​File​System​Loader Load templates from a directory in the file system.
Class ​Function​Loader No summary
Class ​Module​Loader This loader loads templates from precompiled templates.
Class ​Package​Loader Load templates from a directory in a Python package.
Class ​Prefix​Loader No summary
Class _​Template​Module Like a normal module but with support for weak references
Function split​_template​_path Split a path into segments and perform a sanity check. If it detects '..' in the path it will raise a TemplateNotFound error.
def split_template_path(template):
Split a path into segments and perform a sanity check. If it detects '..' in the path it will raise a TemplateNotFound error.
Parameters
template:strUndocumented
Returns
t.List[str]Undocumented