demessaging.template module

Classes:

Template(name, folder, suffix, context, ...)

A convenience wrapper to render a jinja2 template.

class demessaging.template.Template(name: str, folder: ~pathlib.Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/dasf/checkouts/latest/demessaging/templates'), suffix: str = '.jinja2', context: ~typing.Dict[str, ~typing.Any] = <factory>)[source]

Bases: object

A convenience wrapper to render a jinja2 template.

Attributes:

context

folder

name

path

renderer

suffix

Methods:

render(**context)

context: Dict[str, Any]
folder: Path = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/dasf/checkouts/latest/demessaging/templates')
name: str
property path: Path
render(**context) str[source]
property renderer: Any
suffix: str = '.jinja2'