Closed edalzell closed 5 months ago
I have the same issue, but in reverse:
In my blade layout.blade.php
:
<head>
...
@antlers
{{ stack:scripts }}
@endantlers
</head>
and in my antlers template home.antlers.html
:
{{ push:scripts }}
<p>test</p>
{{ /push:scripts }}
Nothing appears on screen.
I've also tried using the blade @stack('scripts')
directive instead of having to write pure antlers in the layout, but that doesn't seem to work either.
I believe that this is related to the same issue?
Bug description
Trying to integrate Laravel views and antlers views with a shared layout and I have this in my antlers layout:
But in the Blade views I can't do
@push('nav')
I have to do@anters {{ push:nav }} @endantlers
Would be great if they worked together.
How to reproduce
Make an Antlers layout:
And in a Laravel route use
@push('nav')
and in an antlers view use{{ push:nav }}
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
None
Additional details
No response