title: what is the difference between <g:applyLayout /> and <g:render template />
body: <p>As the title says... I'm using grails to build a webpage and I know grails uses sitemesh to mesh GSPs.  I have done some googling and I found 2 ways to "tile" gsps (the g:applyLayout and g:render template tags).  Both seem to do the job of "tiling" gsps so my question is, what's the difference?</p>
  
  <p>EDIT:</p>
  
  <p>For example, I'll use a tiles definition.</p>
  
  <pre><code>&lt;tiles-definitions&gt;
    &lt;definition name="myapp.homepage" template="/layouts/classic.jsp"&gt;
      &lt;put-attribute name="title" value="Tiles tutorial homepage" /&gt;
      &lt;put-attribute name="header" value="/tiles/banner.jsp" /&gt;
      &lt;put-attribute name="menu" value="/tiles/common_menu.jsp" /&gt;
      &lt;put-attribute name="body" value="/tiles/home_body.jsp" /&gt;
      &lt;put-attribute name="footer" value="/tiles/credits.jsp" /&gt;
    &lt;/definition&gt;
  &lt;/tiles-definitions&gt;
  </code></pre>
  
  <p>and you use tiles:addAttribute to "inject" a page into the jsp.</p>
  
  <p>It was to my understanding that any gsp that isn't a page you would navigate to (so the "tiles") should be placed into layouts in grails.  So i guess the issue i'm concirned with is 1. How do you do this using grails/sitemesh most effectivly, and 2. If a layout is not what I am led to believe it is, then what is it?</p>