applyLayout
目的 Purpose
Applies the specified layout to either the body, a given template, or an arbitrary URL, allowing the development of "portlet"-style applications and mashups使用例 Examples
<g:applyLayout name="myLayout" template="displaybook" params="[books: books]" />
<g:applyLayout name="myLayout" url="http://www.google.com" />
<g:applyLayout name="myLayout"> The content to apply a layout to </g:applyLayout>
詳細 Description
属性 Attributes
name
- The name of the layouttemplate
- (optional) The template to apply the layout tourl
- (optional) The URL to retrieve the content from and apply a layout tocontentType
(optional) - The content type to use, default is "text/html"encoding
(optional) - The encoding to useparams
(optional) - The params to pass onto the page object (retrievable with the pageProperty tag)