ViewHelper Documentation
render
ViewHelper that renders a section or a specified partial
== Examples ==
<f:render partial="SomePartial" arguments="{foo: someVariable}" />
<f:section name="someSection">This is a section. {foo}</f:section>
<f:render section="someSection" arguments="{foo: someVariable}" />
<f:section name="mySection">
<f:for each="{myMenu}" as="menuItem">
<li>
{menuItem.text}
<f:if condition="{menuItem.subItems}">
<f:render section="mySection" arguments="{myMenu: menuItem.subItems}" />
</f:if>
</li>
</f:for> </f:section> <f:render section="mySection" arguments="{myMenu: menu}" />
<ul>
<li>menu1a</li>
<li>menu1b</li>
</ul>
[...] (depending on the value of {menu})
<f:render partial="somePartial" arguments="{_all}" />
Arguments
section string, required
Name of section to render. If used in a layout, renders a section of the main content file. If used inside a standard template, renders a section of the same file.
partial string, required
Reference to a partial.
arguments anySimpleType, required
Arguments to pass to the partial.
optional boolean, required
Set to TRUE, to ignore unknown sections, so the definition of a section inside a template can be optional for a layout