twill icon indicating copy to clipboard operation
twill copied to clipboard

Support @stack and @push in block editor preview

Open thingasd opened this issue 3 years ago • 1 comments

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

<!doctype html> <html lang="en"> <head> <title>#madewithtwill website <link rel="stylesheet" href="{{mix('css/app.css')}}"> @stack('styles') </head> <body> <div> @yield('content') </div> <script src="{{mix('js/app.js')}}"> @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 avatar May 27 '22 10:05 thingasd

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 avatar May 31 '22 06:05 haringsrob