Releases: orls/envtemplate
Releases · orls/envtemplate
Better error handling, and zero tolerance of missing env vars
Add split util function
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
Basic minimal functionality, with (hopefully) travis release uploading