]> git.maquefel.me Git - brevno-suite/hugo/commit
Fix partial decorator detection in partial with blocks with outer range break or...
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Jan 2026 12:56:55 +0000 (13:56 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Jan 2026 17:05:10 +0000 (18:05 +0100)
commit09048aad7655385e9a287448eed65408d0b850ab
tree8116fbb3779a19b1efbcf899d1f6913f568c28a0
parentf42c422a12987c9ccb1927fc17da37feedd0c7fb
Fix partial decorator detection in partial with blocks with outer range break or continue

E.g.:

```handlebars
{{- $items := slice "a" "b" "c" }}
  {{- range $items }}
    {{- with partial "b" . -}}
 {{break}}
{{- else }}
  else: {{ . -}}
{{- end }}
  {{- end }}
 ```

Fixes #14333
tpl/templates/decorator_integration_test.go
tpl/tplimpl/templatetransform.go