grails-fields-plugin/grails-fields — pull request #171 by mpccolorado (2014-12-20 23:55:59+00:00)
Title: "Component" and "Layout" Features

Now it is possible to specify a component attribute for changing the template to use (it is more easy to override some template, no need to create a new template every time you want to render the same, just specify component="myComponent").

Now the component body and the wrapper is separated.
Layout works in the same way as the templates does. You can specify one specific layout by using the layout attribute. If not, it will look for a layout template in the same way as will do for regular templates (with the name _layout.gsp).
Note: for render the template you must use the new variable renderedField.
i.e:
layout in: views/_fields/_layouts/_specialLayout.gsp

`

`
`${raw(renderedField)}`
`

`