feat templater: Fail if values are missing
Golang's template package now has an option for failing if template variables are missing: https://golang.org/pkg/text/template/#Template.Option This updates the templater code to make use of that option and return the errors encountered during templating. This fixes #1
This commit is contained in:
parent
45aee8257f
commit
3b0f41e71d
3 changed files with 21 additions and 1 deletions
1
templater/testdata/test-template.txt
vendored
Normal file
1
templater/testdata/test-template.txt
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
Template for test {{ .testName }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue