Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras committed Dec 15, 2024
1 parent 7231e86 commit 475b502
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ func (v *Blocks) executeTemplate(w io.Writer, tmplName, layoutName string, data
if layoutName != "" {
layoutName = strings.TrimSuffix(layoutName, v.extension)
layoutName = strings.TrimPrefix(layoutName, v.layoutDir)
layoutName = strings.TrimPrefix(layoutName, "/")
tmpl := v.getTemplateWithLayout(tmplName, layoutName)
if tmpl == nil {
return ErrNotExist{layoutName}
Expand Down

0 comments on commit 475b502

Please sign in to comment.