We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2dce08 commit 0f50efcCopy full SHA for 0f50efc
blocks.go
@@ -96,7 +96,7 @@ func New(fs any) *Blocks {
96
// Root "content" for the default one, so templates without layout can still be rendered.
97
// Note that, this is parsed, the delims can be configured later on.
98
Root: template.Must(template.New("root").
99
- Parse(`{{ define "root" }} {{ template "content" . }} {{ end }}`)),
+ Parse(`{{ define "root" }} {{- template "content" . -}} {{ end }}`)),
100
Templates: make(map[string]*template.Template),
101
Layouts: make(map[string]*template.Template),
102
reload: false,
0 commit comments