I have a js file in assets/javascripts.
By applying <asset:javascript src="myfile.js"/> 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};
<g:if test=${session.memberId}>
memberDisplayName = "${session.memberDisplayName}";
/g:if
I have a js file in assets/javascripts.
By applying <asset:javascript src="myfile.js"/> 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};
<g:if test=${session.memberId}>
memberDisplayName = "${session.memberDisplayName}";
/g:if