is there any way to include a file in all gsp file header ? i want to include a file
<g:javascript src="hotkey.js"/>
in all Gsp files heade part. i’m using STS (SpringSource Tool Suite).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you include your .js files in main.gsp then it will automatically be included in all gsps with the tag
<meta name="layout" content="main" />in the<head>. Example gsp head below:The main layout is automatically included in all gsps generated by the scaffolding create commands.