title: How to include css and javascript to main template head section using the grails web framework
body: <p>I have been using the grails UI performance plugin which handles this with the p:dependantJavascript taglibs.</p>
  
  <p>So say im working on a template <code>_someTemplate.gsp</code> and this template only has the following content:</p>
  
  <pre><code>&lt;div onclick="doSomething()"&gt;someContent&lt;/div&gt;
  </code></pre>
  
  <p>now i would like to add the javascript <code>doSomething()</code> to the head section of the page whenever this template is loaded. Is ther any grails magic to do this?</p>