Skip to content

Releases: orls/envtemplate

Better error handling, and zero tolerance of missing env vars

29 Nov 16:51
Compare
Choose a tag to compare
Add a utility for checking if vars are set:

...since strict-mode is now enabled

Add split util function

29 Nov 14:40
Compare
Choose a tag to compare

Add the ability to split vars by a string, useful for use with the built-in range:

{{ range $i, $v := split .MYVAR ","}} {{$i}}: {{$v}}\n{{ end }}

Given MYVAR="a,b,c", yields:

 0: a
 1: b
 2: c

Optional third arg for max-splits:

{{ range $i, $v := split .MYVAR "," 2}} {{$i}}: {{$v}}\n{{ end }}

Given MYVAR="a,b,c", yields:

 0: a
 1: b,c

Initial release

28 Nov 12:34
Compare
Choose a tag to compare

Basic minimal functionality, with (hopefully) travis release uploading