Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
jinja2.loaders.ModuleLoader Class Reference
Inheritance diagram for jinja2.loaders.ModuleLoader:
Inheritance graph
[legend]
Collaboration diagram for jinja2.loaders.ModuleLoader:
Collaboration graph
[legend]

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
 

Detailed Description

This loader loads templates from precompiled templates.

Example usage:

>>> loader = ModuleLoader('/path/to/compiled/templates')

Templates can be precompiled with :meth:`Environment.compile_templates`.

Member Function Documentation

◆ load()

"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.


The documentation for this class was generated from the following file: