Skip to content

Commit

Permalink
Be strict about missing vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Smith committed Nov 29, 2016
1 parent 4574ec8 commit 7f518ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func WriteTemplateToStream(tplSource string, environ map[string]string, outStrea
tpl.Funcs(template.FuncMap{
"split": TplSplitStr,
})
tpl.Option("missingkey=error")
_, err := tpl.Parse(tplSource)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 7f518ee

Please sign in to comment.