Skip to content

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

Open
@thingasd

Description

@thingasd

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Beyond

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions