Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wureka opened this issue Sep 10, 2016 · 0 comments
Open

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

wureka opened this issue Sep 10, 2016 · 0 comments

Comments

@wureka
Copy link

wureka commented Sep 10, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant