layoutBody

Grails - Adding JavaScript to bottom of page

In Grails using the templating (Sitemesh) if you were to include per-page JavaScript resources then it shows up much earlier in the layout content as part of the <g:layoutBody> Here is an example illustrating the problem: SamplePage.gsp [sourcecode language="html”] MyThinkPond.com Custom Page ... Some this page content [/sourcecode] and the layout page (layoutPage.gsp) [sourcecode language="html”] ... Some template (header) content [/sourcecode]