No block support in shortcodes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 15 Mar 2016 09:22:08 +0000 (10:22 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 15 Mar 2016 09:22:08 +0000 (10:22 +0100)
So no need to check them.

tpl/template.go

index 253fee2f40aaf10deae411efd120ec96c017b1ce..54e16fcd25d54eb264b616b0ee2801c8a793b213 100644 (file)
@@ -402,7 +402,8 @@ func (t *GoHTMLTemplate) loadTemplates(absPath string, prefix string) {
                        var baseTemplatePath string
 
                        // Ace and Go templates may have both a base and inner template.
-                       if filepath.Ext(path) != ".amber" && !strings.HasSuffix(filepath.Dir(path), "partials") {
+                       pathDir := filepath.Dir(path)
+                       if filepath.Ext(path) != ".amber" && !strings.HasSuffix(pathDir, "partials") && !strings.HasSuffix(pathDir, "shortcodes") {
 
                                innerMarkers := goTemplateInnerMarkers
                                baseFileName := fmt.Sprintf("%s.html", baseFileBase)