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
When using the runtime parser, calling View::render from within a view resets the global state, meaning previously declared sections and stacks are cleared resulting in the __literalReplacement placeholders being output, rather than the section or stack content.
Bug description
When using the runtime parser, calling View::render from within a view resets the global state, meaning previously declared sections and stacks are cleared resulting in the
__literalReplacement
placeholders being output, rather than the section or stack content.How to reproduce
I've created an example repository.
Within home.antlers.html we first yield a section, and then call a custom tag which renders another view containing content for that section.
What I'd expect to be output is
Example
, but instead what's output is__literalReplacement::_4beaef6a7fa9dff032b08960e26212ea
Logs
No response
Versions
Statamic 3.3.16 Solo
Laravel 9.17.0
PHP 8.1.7
No addons installed
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response
The text was updated successfully, but these errors were encountered: