From 7f518ee2895dbc6479b7148172155d590924b366 Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Tue, 29 Nov 2016 16:49:17 +0000 Subject: [PATCH] Be strict about missing vars --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index e402378..f4c097c 100644 --- a/main.go +++ b/main.go @@ -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)