title: Are there any good tutorials for using sitemesh in a grails application?
body: <p>I'm a pretty experienced Grails developer, but most of my experience has been with using grails for serving up JSON/XML to a flex app and some relatively simple HTML websites.</p>
  
  <p>I've been diving deeper into using the sitemesh integration in grails and I'm struggling a little to find best practices for some more complex configurations, and I'm curious if there are any good tutorials or examples out there.  The <a href="http://www.opensymphony.com/sitemesh/" rel="noreferrer">original Sitemesh</a> website isn't that useful as the tags it talks about aren't directly exposed in grails.</p>
  
  <p>A google search is mostly showing old mailing list posts and some vanilla sitemesh stuff which is helping me to move a little further along, but it's a lot of trial and error.</p>
  
  <p>I fully understand how the basic g:layoutTitle, g:layoutHead, and g:layoutBody tags work.  Those are easy and well documented.</p>
  
  <p>The kinds of things that I'd like to see examples for:</p>
  
  <ul>
  <li><p>g:applyLayout - <a href="http://grails.org/doc/1.0.x/ref/Tags/applyLayout.html" rel="noreferrer">the documentation on this</a> is weak and I don't fully understand the uses suggested in the main docs.  How is this different than setting the <code>meta name='layout' content='foo'</code> property?</p></li>
  <li><p>g:pageProperty -  some better examples on how to pull and use properties into the main template by setting the values as meta tags in the page that's being decorated.  The <a href="http://grails.org/doc/1.0.x/ref/Tags/pageProperty.html" rel="noreferrer">grails docs on pageProperty</a> show only the onload attribute from the body being brought forward.  I think you can also use meta tag values here as well, anything else?</p></li>
  <li><p>can you use multiple levels of sitemesh layouts?  My testing seems to make me think that I can't, but that seems to reduce reusability.  I think that the answer here is some usage of the g:applyLayout, but that's where I'm struggling the most.  </p></li>
  </ul>