Situation: I have to place many scripts in "javascripts" native twig block.
- javascripts 'assets/js/jquery.js' 'assets/js/some1.coffee' 'assets/js/some2.coffee' ... 'assets/js/someN.coffee' output="assets/js/all.js"
%script( type="text/javascript" src="#{asset_url~(app.environment == 'dev' ? '?'~random() :'' )}" )
How to put scripts each in particular line?
Example:
- javascripts 'assets/js/jquery.js'
'assets/js/some1.coffee'
'assets/js/some2.coffee' ...
'assets/js/someN.coffee'
output="assets/js/all.js"
%script( type="text/javascript" src="#{asset_url~(app.environment == 'dev' ? '?'~random() :'' )}" )
Error:
An exception has been thrown during the compilation of a template ("Illegal nesting: nesting within interpolated string is illegal in ... bla bla bla ... layout.html.haml".
Please don't offer assets/js/*