Lines Matching full:templates
43 A very basic example for a loader that looks up templates on the file
65 #: to the source of templates.
94 """Iterates over all templates. If the loader does not support that
97 raise TypeError('this loader cannot iterate over all templates')
139 """Loads templates from the file system. This loader can find templates
142 The loader takes the path to the templates as string, or if multiple
146 >>> loader = FileSystemLoader('/path/to/templates')
147 >>> loader = FileSystemLoader(['/path/to/templates', '/other/path'])
196 """Load templates from python eggs or packages. It is constructed with
197 the name of the python package and the path to the templates in that
202 If the package path is not given, ``'templates'`` is assumed.
206 of eggs it's only possible to reload templates if the package was loaded
210 def __init__(self, package_name, package_path='templates',
372 ... FileSystemLoader('/path/to/user/templates'),
373 ... FileSystemLoader('/path/to/system/templates')
376 This is useful if you want to allow users to override builtin templates
412 """This loader loads templates from precompiled templates.
417 ... ModuleLoader('/path/to/compiled/templates'),
418 ... FileSystemLoader('/path/to/templates')
421 Templates can be precompiled with :meth:`Environment.compile_templates`.
429 # create a fake module that looks for the templates in the