Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@push and {{ push... }} don't work together. #9880

Open
edalzell opened this issue Apr 14, 2024 · 0 comments
Open

@push and {{ push... }} don't work together. #9880

edalzell opened this issue Apr 14, 2024 · 0 comments

Comments

@edalzell
Copy link
Contributor

edalzell commented Apr 14, 2024

Bug description

Trying to integrate Laravel views and antlers views with a shared layout and I have this in my antlers layout:

{{ stack:nav }}

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:

<!DOCTYPE html>
<html>
    <body class="h-full">
      {{ stack:nav }}
      {{ $slot ?? template_content }}
    </body>
</html>

And in a Laravel route use @push('nav') and in an antlers view use {{ push:nav }}

Logs

No response

Environment

Environment
Application Name: Glazed
Laravel Version: 10.48.7
PHP Version: 8.3.6
Composer Version: 2.7.1
Environment: local
Debug Mode: ENABLED
URL: glazed.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: pusher
Cache: statamic
Database: mysql
Logs: stack / daily, front
Mail: log
Queue: sync
Session: file

Pulse
Enabled: ENABLED
Version: v1.0.0-beta16

Livewire
Livewire: v3.4.10

Statamic
Addons: 2
Antlers: runtime
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.56.1 PRO

Statamic Addons
statamic/seo-pro: 5.4.4
stillat/antlers-components: 2.1.0

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants