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