InterJinn

Development Framework For PHP

Embed: {jinn:accFlush}

Abstract

Alias: {jinn:accumulatorFlush}

This embed is used to flush the contents of an accumulator, previously created by the inclusion of a <jinn:accumulate/>, to be flushed into the embed's location.

Attribute - name

The name of the accumulator whose data you would like inserted at the location of this embed. If no data has been accumulated or no such accumulator exists then nothing will be output.

Attribute - dynamic

If this attribute is set to true then rather than flush an existing accumulator, that has been set up by a <jinn:accumulate/> tag, a dynamic accumulator will be set up with the given name which can be used to target content produced in a dynamic module. The content will be accumulated on every page load and flushed at the correct location when the module logic completes. You must still make an explicit static flush for any non dynamic accumulators.

I have used the following type of accumulator to contextually include secondary navigation buttons while at the same time leaving the posibility for buttons to be added dynamically by any dynamic modules.

Example:
{jinn:accFlush name=javascript}