Skip to content

r:yield

joshrcook edited this page Sep 30, 2014 · 1 revision

<r:yield />

This is a tag specific to layouts. It indicates where the template will insert it's data.

See also: <r:content_for /> & <r:content />

attribute options

name="content-name" - This allows you to specify which content you are yielding.

Example:

<!-- in layout file -->
<r:yield name="page_js">
	<!-- this is where the content will be displayed -->
	<r:content />
</r:yield>

<!-- in template file -->
<r:content_for name="page_js">
	<!-- Your content goes here -->
</r:content_for>
You can’t perform that action at this time.