qwikstart.utils.templates module¶
-
class
qwikstart.utils.templates.
TemplateContext
(*args, **kwargs)¶ Bases:
typing_extensions.Protocol
-
property
execution_context
¶
-
property
template_variable_prefix
¶
-
property
template_variables
¶
-
property
-
class
qwikstart.utils.templates.
TemplateRenderer
(template_loader: jinja2.loaders.BaseLoader, template_variables: Optional[Dict[str, Any]] = None, template_variable_prefix: Optional[str] = None, source_dir: Optional[pathlib.Path] = None)¶ Bases:
object
-
add_template_filters
(**kwargs: Callable[..., str]) → None¶
-
add_template_variable
(key: str, value: Any) → None¶
-
classmethod
from_context
(context: qwikstart.utils.templates.TemplateContext) → TRenderer¶
-
get_template
(path_str: str) → jinja2.environment.Template¶
-
render
(template_path: str) → str¶
-
render_string
(string: str) → str¶
-
resolve_template_path
(path_str: str) → pathlib.Path¶
-
update_template_variables
(kwargs: Any) → None¶
-