INTRODUCTION
Configuration Templating Language (conftl) is a language for templating configuration files. It embeds Python into the template in order to use the full power of Python syntax and logic. For this reason a person familiar with the Python syntax can learn the conftl templating in minutes.

Audience: System Administrators, DevOps, SRE, Python Developers and everybody who wants to template their configuration files.
TEMPLATE SYNTAX
There are three rules letting you start quickly with conftl syntax:
  • Rule 1) Python code should be enclosed in tags {{...}}
  • Rule 2) Python blocks must end with the keyword {{pass}}
  • Rule 3) Variables are printed to output enclosed in tags and prepended with = like {{=i}}
Here is a simple quickstart example:
TEMPLATE                    | WILL OUTPUT
------------------------------------------
{{for i in range(0, 3):}}   | 0 Hi, there!
{{=i}} Hi, there!           | 1 Hi, there!
{{pass}}                    | 2 Hi, there!
------------------------------------------
More information and advanced usage can be found in the links below.
INTEGRATION
For integration with your project: