You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In antlers when using {{ noparse }} inside nested partials that use a {{ slot }}, only the first two {{ noparse }} are rendered, the third and the further ones disappear.
The problem arises when the partials are structured in this way:
sosias
changed the title
{{ noparse }} issue in nested partials with {{ slot }}
{{ noparse }} disappear in nested partials with {{ slot }}
Feb 21, 2025
sosias
changed the title
{{ noparse }} disappear in nested partials with {{ slot }}
{{ noparse }} content disappear in nested partials with {{ slot }}
Feb 21, 2025
Bug description
In antlers when using
{{ noparse }}
inside nested partials that use a{{ slot }}
, only the first two{{ noparse }}
are rendered, the third and the further ones disappear.The problem arises when the partials are structured in this way:
How to reproduce
In a new statamic project add these 3 antlers files:
resources/views/_partial_a.antlers.html
{{ slot }}
resources/views/_partial_b.antlers.html
{{ slot }}
resources/views/home.antlers.html
In the browser call the url that renders the
resources/views/home.antlers.html
template file.The rendered view will be:
first outside, inside noparse
second outside, inside noparse
third outside,
fourth outside,
The string
inside noparse
is missing from the third onwardsLogs
Environment
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: