FunctionLoader
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| LoaderMixin jinjarope.loaders Loader mixin which allows to OR loaders into a choice loader. |
||
| FunctionLoader jinja2.loaders A loader that is passed a function which does the loading. The |
⋔ Inheritance diagram¶
graph TD
97041655213712["loaders.FunctionLoader"]
97041656291584["loaders.LoaderMixin"]
128674497047040["builtins.object"]
97041654415360["loaders.FunctionLoader"]
97041655470432["loaders.BaseLoader"]
97041656291584 --> 97041655213712
128674497047040 --> 97041656291584
97041654415360 --> 97041655213712
97041655470432 --> 97041654415360
128674497047040 --> 97041655470432
🛈 DocStrings¶
Bases: LoaderMixin, FunctionLoader
A loader for loading templates from a function.
The function takes a template path as parameter and either returns a (text, None, uptodate_fn) tuple or just the text as str.