Skip to content

0.1.0

Compare
Choose a tag to compare
@hairyhenderson hairyhenderson released this 20 Feb 23:10
· 2396 commits to main since this release

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)