Thursday, May 5, 2011

grails template

You can include a GSP template in a GSP page with the <g:render> tag, like this:

<g:render template="someTemplate" />

This line would render a template called _someTemplate.gsp in the same directory as the page that it is being called from. To render templates from a different directory, add the path before the name of the template. We never include the “_” at the beginning of the template name in the <g:render> tag.

No comments:

Post a Comment