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

« Previous Version 2 Next »


Rendering is changing data into something <variable> ------->  into "value". 

Parsing takes raw data or input and converts it a data structure, or structures that can be analyzed. 


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