Classes:

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

A convenience wrapper to render a jinja2 template.

class demessaging.template.Template(name: str, folder: ~pathlib.Path = PosixPath('/builds/digital-earth/dasf/dasf-messaging-python/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('/builds/digital-earth/dasf/dasf-messaging-python/demessaging/templates')
name: str
property path: Path
render(**context) str[source]
property renderer: Any
suffix: str = '.jinja2'