InterJinn

Development Framework For PHP

Tag: <jinn:render/>

Abstract

Many of the dynamic modules you create will be cut and dry output. You'll include the <jinn:module/> tag and any relevant <jinn:component/> tags and you will be happy with the output all being presented in that single location. On the other hand you will come across, perhaps often, modules whose output you want to slice and dice into different areas of the presentation. The <jinn:render/> tag exists to fulfill this need.

Attribute - name

This attribute refers to the name given to a module that has been included someplace in the content. The order of the <jinn:module/> tag and the <jinn:render/> tag is not important provided there is a name match.

Attribute - component

Since a module may have multiple render components, you can set this attribute to the name of the render component that you want to perform the render.

Attribute - selector

This will be passed to the render() method of your render component as a parameter. From within the component you may then determine what to output. See the section about modules for more information.

The following is an example of how one might use this tag.

Example:
<table cellspacing="0" cellpadding="0">
<tr><td>
<jinn:render name="marketChart" selector="graph"/>
</td></tr>
<tr><td>
Chart Time: <jinn:render name="marketChart" selector="asOfTime"/>
</td></tr>
</table>