diff options
Diffstat (limited to 'tpl/partials')
-rw-r--r-- | tpl/partials/partials.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/partials/partials.go b/tpl/partials/partials.go index 39bb153e0..ece16276d 100644 --- a/tpl/partials/partials.go +++ b/tpl/partials/partials.go @@ -65,7 +65,7 @@ type Namespace struct { // Include executes the named partial and returns either a string, // when the partial is a text/template, or template.HTML when html/template. func (ns *Namespace) Include(name string, contextList ...interface{}) (interface{}, error) { - if strings.HasPrefix("partials/", name) { + if strings.HasPrefix(name, "partials/") { name = name[8:] } var context interface{} |