summaryrefslogtreecommitdiffstats
path: root/hugolib/shortcode_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:05:31 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-09 14:37:58 +0100
commit973393c99e3e6927e1c8ef27b0cd8f22eae3f4e4 (patch)
tree4e2635062426b690c46f8cbf42c164df6154e757 /hugolib/shortcode_test.go
parent9896cd0030da75bf6acab14dad0a7f78472ceff9 (diff)
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r--hugolib/shortcode_test.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index 306b53e84..07af6b3a6 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -458,12 +458,16 @@ e`,
}
s.initializeSiteInfo()
- templatePrep(s)
+
+ s.loadTemplates()
+
+ s.Tmpl.AddTemplate("_default/single.html", "{{.Content}}")
+
s.Tmpl.AddInternalShortcode("b.html", `b`)
s.Tmpl.AddInternalShortcode("c.html", `c`)
s.Tmpl.AddInternalShortcode("d.html", `d`)
- must(s.addTemplate("_default/single.html", "{{.Content}}"))
+ s.Tmpl.MarkReady()
createAndRenderPages(t, s)