Skip to content

Commit 20d7d8f

Browse files
committed
Create dedicated script container without HTML
1 parent 9f0dcdc commit 20d7d8f

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

view/base/layout/loki_base.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</block>
2727
</container>
2828

29-
<block name="loki.script.store" template="Loki_Base::container.phtml">
29+
<block name="loki.script.store" template="Loki_Base::script/script-container.phtml">
3030
<arguments>
3131
<argument name="cache_lifetime" xsi:type="number">86400</argument>
3232
</arguments>
@@ -40,17 +40,17 @@
4040
<block name="loki.script.store.messages" template="Loki_Base::script/store/message-store.phtml"/>
4141
</block>
4242

43-
<block name="loki.script.directive" template="Loki_Base::container.phtml">
43+
<block name="loki.script.directive" template="Loki_Base::script/script-container.phtml">
4444
<block name="loki.script.directive.autoremove" template="Loki_Base::script/directive/autoremove-directive.phtml"/>
4545
</block>
4646

47-
<block name="loki.script.component-partial" template="Loki_Base::container.phtml">
47+
<block name="loki.script.component-partial" template="Loki_Base::script/script-container.phtml">
4848
</block>
4949

50-
<block name="loki.script.component-type" template="Loki_Base::container.phtml">
50+
<block name="loki.script.component-type" template="Loki_Base::script/script-container.phtml">
5151
</block>
5252

53-
<block name="loki.script.component" template="Loki_Base::container.phtml">
53+
<block name="loki.script.component" template="Loki_Base::script/script-container.phtml">
5454
<block name="loki.component.messages" template="Loki_Base::script/component/message-component.phtml"/>
5555
</block>
5656
</referenceContainer>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
use Magento\Framework\View\Element\Template;
5+
6+
/** @var Template $block */
7+
?>
8+
<?= /* @noEscape */ $block->getChildHtml(); ?>
9+

0 commit comments

Comments
 (0)