erber
Here in devops-land, I find myself needing to do template substitutions on the regular--enough that it'd be a pain to do it with sed but not enough that I want to build a dedicated tool for that one project. (I had enough of that with terraframe, I don't need more.)
So today I whipped out erber, a simple 
All you need to do to use erber is:
gem install erber
erber -p props1.json -p props2.yaml template.txt.erb > your_output.txt
One note: erber uses Hashie::Mash internally, so you can use either method names or hash chain syntax, as you prefer. I don't judge.
Contributing
- Fork it ( https://github.com/eropple/erber/fork )
- Create your feature branch (git checkout -b develop/my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin develop/my-new-feature)
- Create a new Pull Request!