Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/partials/init.go')
-rw-r--r--tpl/partials/init.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/partials/init.go b/tpl/partials/init.go
index b68256a9a..c2135bca5 100644
--- a/tpl/partials/init.go
+++ b/tpl/partials/init.go
@@ -36,6 +36,13 @@ func init() {
},
)
+ // TODO(bep) we need the return to be a valid identifier, but
+ // should consider another way of adding it.
+ ns.AddMethodMapping(func() string { return "" },
+ []string{"return"},
+ [][2]string{},
+ )
+
ns.AddMethodMapping(ctx.IncludeCached,
[]string{"partialCached"},
[][2]string{},