How to integrate JQuery code in grails layout

Viewed 22

I have a view that is built by composing it with a given layout.Now I find myself having to add jquery code both in the layout AND in the page. Is there a way to embed parts of the layout code inside the page's "document.ready" function? Otherwise I'd have to repeat the layout components related jquery calls in every page that uses it.

0 Answers
Related