Gotmpl
Tiny CLI template engine for generating files quickly
Gotmpl brings Go's Templates to your terminal along with some helpful functions courtesy of Sprig. Usage is extremely simple, after installing the binary, you can use it like so:
gotmpl render --tmpl ./template.tmpl --data ./data.json > ./output.txt
Features
- Sprig functions
- Support for JSON, YAML, and TOML data files
Installation
Homebrew
brew install hay-kot/gotmpl-tap/gotmpl
Go
go install https://github.com/hay-kot/gotmpl