ref: c3115292a7f2d2623cb45054a361e997ad9330c9
parent: 0c6c98e401b22fa2737bb7266742ae88722825ab
author: Anthony Fok <[email protected]>
date: Sun Jun 3 01:45:33 EDT 2018
tpl: Prevent isBaseTemplate() from matching "baseof" in dir Fixes #4809
--- a/tpl/tplimpl/template.go
+++ b/tpl/tplimpl/template.go
@@ -726,5 +726,5 @@
const baseFileBase = "baseof"
func isBaseTemplate(path string) bool {
- return strings.Contains(path, baseFileBase)
+ return strings.Contains(filepath.Base(path), baseFileBase)
}