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

Support @stack and @push in block editor preview #1663

Open
thingasd opened this issue May 27, 2022 · 1 comment
Open

Support @stack and @push in block editor preview #1663

thingasd opened this issue May 27, 2022 · 1 comment

Comments

@thingasd
Copy link
Contributor

thingasd commented May 27, 2022

For example:
resources/views/site/layout/block.blade.php

<!doctype html>
<html lang="en">
<head>
<title>#madewithtwill website</title>
<link rel="stylesheet" href="{{mix('css/app.css')}}">
@stack('styles')
</head>
<body>
<div>
@yield('content')
</div>
<script src="{{mix('js/app.js')}}"></script>
@stack('scripts')
</body>
</html>

resources/views/site/blocks/some_block.blade.php
@Push('styles')
<style>Some styles</styles>
@endpush
@Push('scripts')
<script>Some scripts</script>
@endpush

Seems some_block is not extending block, stack and push is not working, is that some other ways to do this?

@thingasd thingasd changed the title Can I use @stack and @push block editor preview? Can I use @stack and @push in block editor preview? May 27, 2022
@haringsrob
Copy link
Contributor

Hey @thingasd,

This is currently not possible. But I will for sure look into it for 3.x if I find some spare time.

I will leave the issue open so it can be tracked.

@haringsrob haringsrob changed the title Can I use @stack and @push in block editor preview? [3.x] Support @stack and @push in block editor preview May 31, 2022
@ifox ifox moved this to Beyond in Twill roadmap Feb 9, 2024
@ifox ifox changed the title [3.x] Support @stack and @push in block editor preview Support @stack and @push in block editor preview Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Beyond
Development

No branches or pull requests

2 participants