Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Jinja2 - 101 - Intro to Jinja2 template building


Manual:   https://media.readthedocs.org/pdf/jinja2/latest/jinja2.pdf


jinja2 module
 With Python: ( use extensively by ANsible)

>>> from jinja2 import Template

>>> template = Template('Hello {{ name }}!')

>>> template.render(name='John Doe')

'Hello John Doe!'


  • No labels