mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Revert "tpl: Rework to handle both text and HTML templates"
Will have to take another stab at this ...
This reverts commit 5c5efa03d2
.
Closes #3260
This commit is contained in:
@@ -335,8 +335,8 @@ func TestShortcodeTweet(t *testing.T) {
|
||||
th = testHelper{cfg, fs, t}
|
||||
)
|
||||
|
||||
withTemplate := func(templ tpl.TemplateHandler) error {
|
||||
templ.(tpl.TemplateTestMocker).SetFuncs(tweetFuncMap)
|
||||
withTemplate := func(templ tpl.Template) error {
|
||||
templ.Funcs(tweetFuncMap)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -390,8 +390,8 @@ func TestShortcodeInstagram(t *testing.T) {
|
||||
th = testHelper{cfg, fs, t}
|
||||
)
|
||||
|
||||
withTemplate := func(templ tpl.TemplateHandler) error {
|
||||
templ.(tpl.TemplateTestMocker).SetFuncs(instagramFuncMap)
|
||||
withTemplate := func(templ tpl.Template) error {
|
||||
templ.Funcs(instagramFuncMap)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user