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
94587534233840["loaders.FunctionLoader"]
94587531523792["loaders.LoaderMixin"]
139903737475296["builtins.object"]
94587530762896["loaders.FunctionLoader"]
94587533553392["loaders.BaseLoader"]
94587531523792 --> 94587534233840
139903737475296 --> 94587531523792
94587530762896 --> 94587534233840
94587533553392 --> 94587530762896
139903737475296 --> 94587533553392
🛈 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.
Source code in src/jinjarope/loaders.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
|