Is it possible to add an asset from a Volt template? Something like:
{% assets.addJs('js/filename.js') %}
Or do I need to do it with PHP code?
This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.
Is it possible to add an asset from a Volt template? Something like:
{% assets.addJs('js/filename.js') %}
Or do I need to do it with PHP code?