mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6 Fixes #1879
This commit is contained in:
parent
9896cd0030
commit
973393c99e
10 changed files with 116 additions and 69 deletions
|
@ -51,12 +51,11 @@ func TestDefaultHandler(t *testing.T) {
|
|||
}
|
||||
|
||||
s.initializeSiteInfo()
|
||||
// From site_test.go
|
||||
templatePrep(s)
|
||||
|
||||
must(s.addTemplate("_default/single.html", "{{.Content}}"))
|
||||
must(s.addTemplate("head", "<head><script src=\"script.js\"></script></head>"))
|
||||
must(s.addTemplate("head_abs", "<head><script src=\"/script.js\"></script></head>"))
|
||||
s.prepTemplates(
|
||||
"_default/single.html", "{{.Content}}",
|
||||
"head", "<head><script src=\"script.js\"></script></head>",
|
||||
"head_abs", "<head><script src=\"/script.js\"></script></head>")
|
||||
|
||||
// From site_test.go
|
||||
createAndRenderPages(t, s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue