env-tpl

January 15, 2016 ยท View on GitHub

Build Status Docker Repository on Quay

Render Go templates from Environment Variables. Let's say you have the following template file called pwd.tpl:

The current working directory is {{.PWD}}

Run envtpl -in pwd.tpl, and you'll see the following printed to STDOUT:

The current working directory is /path/you/executed/from