How can I include assets in volt template without using controller. For example, when I include assets in controller I would write something like this:
controller.php
<?php
$footerAssets = $this->assets->collection('footer');
$footerAssets->addJs('some_path');
$footerAssets->addInlineJs('some_js_code');
Calling this js assets in volt:
<footer>
{% if assets.exists('footer') %}
{{ assets.outputJs('footer') }}
{{ assets.outputInlineJs('footer') }}
{% endif %}
</footer>
How can I get same results without using controller, only volt?