I have an ajax function which returns a response.
response.callback
is the result of a rendered twig view containing a script tag and the callback I'm interested in :
<script>
The code I want to run with {{ parameters }} rendered by twig
</script>
How can I execute response.callback code which is included in the script tag ?
Alternatively, I could render js code without the script tag but then I need to find a way to render a js file with twig and pass parameters to this file.
Thanks a lot!