Template Tango
DockerHub | Github Repository | Issues and feature requests | Full documentation
Template Tango parses templates written in a twig-like templating language.
Environment variables and variables loaded from a .env file are made available in the templates.
The application is available as a stand-alone binary with NO dependencies, so you can easily include it in your docker image (by copying it from the Template Tango image)
Intended usage
It's primary usage if parsing configuration templates in docker container boot scripts. These templates can have conditional sections.
Example
Parsing a template file:
Parsing all .twig files
And outputting them to another directory, without the .twig extension. The input dir is also used as the work directory. .env files are always loaded from the current work directory (not the input directory)
Example template:
nginx.conf:
.env