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?
EDIT:
For example, I'll use a tiles definition.
<tiles-definitions>
<definition name="myapp.homepage" template="/layouts/classic.jsp">
<put-attribute name="title" value="Tiles tutorial homepage" />
<put-attribute name="header" value="/tiles/banner.jsp" />
<put-attribute name="menu" value="/tiles/common_menu.jsp" />
<put-attribute name="body" value="/tiles/home_body.jsp" />
<put-attribute name="footer" value="/tiles/credits.jsp" />
</definition>
</tiles-definitions>
and you use tiles:addAttribute to "inject" a page into the jsp.
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?