github.com/tmc/tmpl
@
v1.11.0
Command tmpl renders a template with the current env vars as input. # tmpl Command tmpl renders a template with the current env vars as input. tmpl packs a punch in under 200 lines of code: a single static binary supplies the capapbilities of many more cmplicating templating engines. It's especially helpful as an early entrypoint into containers to prepare configuration files. ```sh $ tmpl -h Usage of tmpl: ``` It includes all of the template helpers from sprig(https://godoc.org/github.com/Masterminds/sprig). It effectively exposes Go's text/template(http://golang.org/pkg/text/template) for use in shells. Reference text/template(http://golang.org/pkg/text/template) documentation for template language specification. ### Example 1 Given a file 'a' with contents: Invoking Produces ### Example 2 Given a file 'b' with contents: Invoking Produces
11
Dependencies
-
-
-
github.com/Masterminds/sprig
v2.22.0+incompatible -
github.com/google/uuid
v1.3.0 -
github.com/huandu/xstrings
v1.3.2 -
github.com/imdario/mergo
v0.3.13 -
-
-
github.com/stretchr/testify
v1.8.0 -
golang.org/x/crypto
v0.0.0-20220622213112-05595931fe9d -
gopkg.in/yaml.v3
v3.0.1
Links
| Registry | proxy.golang.org |
| Docs | Documentation |
| Download | Download |
| JSON API | View JSON |
| CodeMeta | codemeta.json |