Sorry: ... still cannot use asset plugin
The following testing script is in /mytheme/js:
<script>
alert('Hello, World!')
</script>
in template, it is called by:
{% do assets.add('theme://js/helloworld.js') %}
or
{% block javascripts %}
{% do assets.addJs('theme://js/helloworld.js' %}
{{ assets.js() }}
{% endblock %}
(in page.header,assets: is enabled: true)
*... but nothing happens!*
nothing.
does not work here.
There must be something wrong.... but what?
For the moment, I am dealing with TWIG passing every script in .html.twig extensions, but it is not really serious...
Any advice welcome.