diff options
Diffstat (limited to 'tpl/tplimpl/ace.go')
-rw-r--r-- | tpl/tplimpl/ace.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tpl/tplimpl/ace.go b/tpl/tplimpl/ace.go index 7a1f849f4..6fedcb583 100644 --- a/tpl/tplimpl/ace.go +++ b/tpl/tplimpl/ace.go @@ -51,15 +51,17 @@ func (t *templateHandler) addAceTemplate(name, basePath, innerPath string, baseC return err } - isShort := isShortcode(name) + typ := resolveTemplateType(name) - info, err := applyTemplateTransformersToHMLTTemplate(isShort, templ) + info, err := applyTemplateTransformersToHMLTTemplate(typ, templ) if err != nil { return err } - if isShort { + if typ == templateShortcode { t.addShortcodeVariant(name, info, templ) + } else { + t.templateInfo[name] = info } return nil |