bertramdev / grails-asset-pipeline

Grails Asset Pipeline
Apache License 2.0
78 stars 64 forks source link

How to apply grails tag or GString in js files in assets path #373

Open wureka opened 8 years ago

wureka commented 8 years ago

I have a js file in assets/javascripts. By applying I can import it . But now I want to apply grails tag and Gstring in my myfile.js. And it does not work. For example in myfile.js, it contains:

data = ${queryResult.data};

memberDisplayName = "${session.memberDisplayName}"; /g:if