![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|


Public Member Functions | |
| None | __init__ (self, t.Union[str, "os.PathLike[str]", t.Sequence[t.Union[str, "os.PathLike[str]"]]] path) |
| "Template" | load (self, "Environment" environment, str name, t.Optional[t.MutableMapping[str, t.Any]] globals=None) |
Public Member Functions inherited from jinja2.loaders.BaseLoader | |
| t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]] | get_source (self, "Environment" environment, str template) |
| t.List[str] | list_templates (self) |
Static Public Member Functions | |
| str | get_template_key (str name) |
| str | get_module_filename (str name) |
Public Attributes | |
| module | |
| package_name | |
Static Public Attributes | |
| bool | has_source_access = False |
Static Public Attributes inherited from jinja2.loaders.BaseLoader | |
| bool | has_source_access = True |
This loader loads templates from precompiled templates.
Example usage:
>>> loader = ModuleLoader('/path/to/compiled/templates')
Templates can be precompiled with :meth:`Environment.compile_templates`.
| "Template" jinja2.loaders.ModuleLoader.load | ( | self, | |
| "Environment" | environment, | ||
| str | name, | ||
| t.Optional[t.MutableMapping[str, t.Any]] | globals = None |
||
| ) |
Loads a template. This method looks up the template in the cache or loads one by calling :meth:`get_source`. Subclasses should not override this method as loaders working on collections of other loaders (such as :class:`PrefixLoader` or :class:`ChoiceLoader`) will not call this method but `get_source` directly.
Reimplemented from jinja2.loaders.BaseLoader.