"Fossies" - the Fresh Open Source Software Archive

Member "grails-core-5.2.4/grails-docs/src/test/resources/docs/ref/Tags/applyLayout.html" (14 Sep 2022, 60948 Bytes) of package /linux/www/grails-core-5.2.4.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the grails-core-5.2.4.tar.gz project site itself.

(Quick Reference)

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]" />

or

<g:applyLayout name="myLayout" url="http://www.google.com" />

or

<g:applyLayout name="myLayout">
The content to apply a layout to
</g:applyLayout>

Description

Attributes

  • name - The name of the layout

  • template - (optional) The template to apply the layout to

  • url - (optional) The URL to retrieve the content from and apply a layout to

  • contentType (optional) - The content type to use, default is "text/html"

  • encoding (optional) - The encoding to use

  • params (optional) - The params to pass onto the page object (retrievable with the pageProperty tag)

  • model (optional) - The model (as java.util.Map) to pass to the view and layout templates