Built-in Verbs
Built-in verbs exist within the Fusebox Core Files (/fusebox5/verbs/), and are in a reserved namespace called $fusebox. They are invoked without a prefix. In all other respects, they are just like user-defined custom lexicon verbs. Note that the verbs <do> and <fuseaction> are handled inside the framework and do not exist as external verbs (because they require framework 'magic' to accomplish their tasks: they are really compiler directives, rather than actual verbs). It is worth noting that built-in verbs are also implemented as a custom lexicon.
These verbs are as follows:
Built-in Verbs are executed at "compile-time" and generates CFML.
Verbs can Nest
Fusebox 5.1 brought a significant enhancement to the Fusebox xml files, and specificly relating to Verbs, allowing nesting.
<true>
<if condition="">
<true>
<set name="attributes.MyName" value="JOSH"/>
</true>
</if>
<include template="dsp_myPage"/>
</true>
<false>
<include template="dsp_myPage"/>
</false>
</if>
Fusebox 4.1 placed a number of restrictions on how
Custom Verbs
Custom Fusebox verbs can be created using lexicon's, or a collection of user-defined verbs. see more
Extending Fusebox Verbs
A collection of Fusebox lexicons is made available within
Fusebox.org's Essentials Download. This contains custom Lexicons for Coldfusion, ColdSpring, and Reactor.
For more information on Extending the Fusebox Framework, click here.
Comments
There are currently no comments on this fusearticle.Be the first to comment



