github hairyhenderson/gomplate v0.1.0
0.1.0

latest releases: v4.0.0-pre-2, v3.11.7, v3.11.6...
8 years ago

While I'm not ready to call this a 1.0 release, I am comfortable calling this production-ready-ish.

Breaking changes

This release marks a major change in the way input is parsed:

In order to support multi-line templates, the entire input is now read before applying the template. This is a change from the previous implementation, which read only one line at a time.

This means that templates like this will now work:

{{ if eq .Env.THING_ENABLED "true" }}
do the thing
{{ else }}
don't do the thing
{{ end }}

Additions

Two new functions:

  • getenv - a more forgiving way to get an environment variable (see README.md)
  • bool - converts a string into a boolean (see README.md)

Don't miss a new gomplate release

NewReleases is sending notifications on new releases.