Jinja2

Jinja2

Jinja2 Basics

The Basic : Example of a configuration in one script : import jinja2 dict_variables = {‘key’:  ‘value’, etc…} template_cfg = ”’ config…{{ .key }} config…{{ .key }} config….{{ .key }} “”” template = jinja2.Template(template_cfg) print(template.render(dict_variables) To access : a key…
Read more