datazen.templates
index
/home/vkottler/src/vkottler/workspace/datazen/datazen/templates.py

datazen - Top-level APIs for loading and interacting with templates.

 
Modules
       
jinja2
os

 
Functions
       
environment(auto_reload: bool = False, autoescape_kwargs: Dict[str, Any] = None, lstrip_blocks: bool = True, trim_blocks: bool = True, undefined: Type[jinja2.runtime.Undefined] = <class 'jinja2.runtime.StrictUndefined'>, **kwargs) -> jinja2.environment.Environment
Create a jinja environment with some sane defaults.
load(template_dirs: Iterable[Union[pathlib.Path, str, NoneType]], loads: datazen.load.LoadedFiles = LoadedFiles(files=None, file_data=None)) -> Dict[str, jinja2.environment.Template]
Load jinja2 templates from a list of directories where templates can be
found.
update_cache_primitives(dir_path: str, loads: datazen.load.LoadedFiles) -> None
From a directory path, update the 'loaded_list' and 'hashes' primitives
that belong to an upstream cache.

 
Data
        DEFAULT_LOADS = LoadedFiles(files=None, file_data=None)
Dict = typing.Dict
GenericStrDict = typing.Dict[str, typing.Any]
Iterable = typing.Iterable
Pathlike = typing.Union[pathlib.Path, str, NoneType]
Type = typing.Type