envtpl
renders Crinja templates on the command line using environment variables.
Grab the latest binary from the releases page and run it :)
Usage: envtpl [arguments]
-i FILE, --in=FILE Specifies the input file (STDIN by default)
-o FILE, --out=FILE Specifies the output file (STDOUT by default)
-h, --help Show this help
nicolas@laptop:~/PROJECTS/CRYSTAL/envtpl$ echo "Hello: {{ SHELL }}" | bin/envtpl
Hello: /bin/bash
nicolas@laptop:~/PROJECTS/CRYSTAL/envtpl$ echo "Hello: {{ env('SHELL') }}" | bin/envtpl
Hello: /bin/bash
nicolas@laptop:~/PROJECTS/CRYSTAL/envtpl$ echo "Hello: {{ env('SHELL', 'USER') }}" | bin/envtpl
Hello: {'SHELL' => '/bin/bash', 'USER' => 'nicolas'}
- Fork it (https://github.com/your-github-user/envtpl/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Nicolas Rodriguez - creator and maintainer