Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macedigital/go-template-renderer
Helper utility for testing go template rendering with a fast feedback loop
https://github.com/macedigital/go-template-renderer
Last synced: 15 days ago
JSON representation
Helper utility for testing go template rendering with a fast feedback loop
- Host: GitHub
- URL: https://github.com/macedigital/go-template-renderer
- Owner: macedigital
- License: mit
- Created: 2023-07-21T12:45:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-13T08:09:36.000Z (about 1 year ago)
- Last Synced: 2024-06-21T17:56:20.081Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-template-renderer
Small utility for testing go template rendering with a super-fast feedback loop
## Usage
No additional dependencies are required, only standard library is used. Just build the binary like this `go build -o tpl-renderer main.go`.
Basic usage is `./tpl-renderer .json` and output will be the rendered template, or the last error that occurred.
### Example
Render `examples/example.tpl.yaml` using values coming from `examples/example.json` and linting the output with `yamllint`.
```sh
./tpl-renderer examples/example.tpl.yaml examples/example.json | yamllint -
```## License
MIT