If i include javascript in a template using:
{% set myJS %}
//some JS in here
{% endset %}
{% includeJS myJS %}
Is there a way to minify the javascript that gets output on the page? I had a look at the documentation but couldn't find anything. The only way i have found to do it otherwise is to put the javascript in an external file, minify that, and include it with {% includeJsFile %}. Any ideas on how i could do this? Or is there a better way to achieve the same result?