I want to add some script to Grav using some parameters.
{% do assets.addInlineJs('var imageurl = "'.{{ url('theme://images/logo.svg') }}.'";', 99) %}
This and some other things like
{% do assets.addInlineJs('var imageurl = "' . url("theme://images/logo.svg") . '";', 99) %}
do not work. What am I missing? I want to use an imagepath from the theme to pass to the script.