Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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