aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/templates/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/templates/init.go')
-rw-r--r--tpl/templates/init.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/templates/init.go b/tpl/templates/init.go
index 8bc53ef49..4ae5c12cc 100644
--- a/tpl/templates/init.go
+++ b/tpl/templates/init.go
@@ -31,13 +31,13 @@ func init() {
ns.AddMethodMapping(ctx.Exists,
nil,
- [][2]string{{`{{ if (templates.Exists "partials/header.html") }}Yes!{{ end }}`, `Yes!`},
+ [][2]string{
+ {`{{ if (templates.Exists "partials/header.html") }}Yes!{{ end }}`, `Yes!`},
{`{{ if not (templates.Exists "partials/doesnotexist.html") }}No!{{ end }}`, `No!`},
},
)
return ns
-
}
internal.AddTemplateFuncsNamespace(f)