Extending Fusebox Verbs: Lexicon Essentials
To extend the capabilities within Fusebox, specifically verb syntax and availability within Fusebox xml namespace, you can use pre-built Custom Lexicons.
The current set of Lexicons makes available the verbs for the following:
Coldfusion Lexicon Verbs
Coldfusion Lexicon Circuit Declaration:
abort.cfm
Verb Usage:
<cf:abort showerror="custom error message"/>
case.cfm
Verb Usage:
<cf:case value="someValue">
... some code ...
</cf:case>
<cf:case value="anotherValue|andAnother" delimiters="|">
... more code ...
</cf:case>
<cf:defaultcase>
... default code ...
</cf:defaultcase>
</cf:switch>
catch.cfm
Verb Usage:
... other code ...
<cf:catch type="any">
... exception handler ...
</cf:catch>
</cf:try>
cookie.cfm
Verb Usage:
defaultcase.cfm
Verb Usage:
<cf:case value="someValue">
... some code ...
</cf:case>
<cf:case value="anotherValue|andAnother" delimiters="|">
... more code ...
</cf:case>
<cf:defaultcase>
... default code ...
</cf:defaultcase>
</cf:switch>
dump.cfm
Verb Usage:
<cf:dump label="some label" var="#somevariable#" />
lock.cfm
Verb Usage:
... some locked code ...
</cf:lock>
<cf:lock scope="session" timeout="10" type="readonly">
... more locked code ...
</cf:lock>
savecontent.cfm
Verb Usage:
... other code ...
</cf:cfsavecontent>
switch.cfm
Verb Usage:
<cf:case value="someValue">
... some code ...
</cf:catch>
<cf:case value="anotherValue|andAnother" delimiters="|">
... more code ...
</cf:case>
<cf:defaultcase>
... default code ...
</cf:defaultcase>
</cf:switch>
throw.cfm
Verb Usage:
<cf:throw type="error type" message="custom error message" detail="more details" />
timer.cfm
Verb Usage:
trace.cfm
Verb Usage:
try.cfm
Verb Usage:
... other code ...
<cf:catch type="any">
... exception handler ...
</cf:catch>
</cf:try>
Coldspring Lexicon Verbs
ColdSpring Lexicon Circuit Declaration:
bean.cfm
Verb Usage:
<cs:bean beanDefinitionFile="..." />
more bean tags......
</cs:initialize>
get.cfm
Verb Usage:
<cs:get bean="GenericCollection" returnvariable="variables.myCollection"
coldspringfactory="servicefactory"/>
<cs:get beanDefinition="GenericCollection"
returnvariable="variables.myBeanDefinition"
coldspringfactory="servicefactory"/>
initialize.cfm
Verb Usage:
<cs:initialize beanDefinitionFile="#expandPath('/config/ColdSpring.xml')#"
coldspringfactory="servicefactory"
defaultproperties="default coldspring properties"/>
Reactor Lexicon Verbs
Reactor Lexicon Circuit Declaration:
dao.cfm
Creates a data access object of a given type from Reactor
Verb Usage:
dictionary.cfm
Creates a dictionary of a given type from Reactor
Verb Usage:
gateway.cfm
Verb Usage:
initialize.cfm
Verb Usage:
iterator.cfm
Verb Usage:
metadata.cfm
Verb Usage:
plugin.cfm
Verb Usage:
record.cfm
Verb Usage:
to.cfm
Verb Usage:
validator.cfm
Verb Usage:
Transfer Lexicon Verbs
Transfer Lexicon Circuit Declaration:
delete.cfm
Verb Usage:
init.cfm
Verb Usage:
datasource="/config/datasource.xml"
configuration="/config/transfer.xml"
definitions="/output" />
list.cfm
Verb Usage:
new.cfm
Verb Usage:
parameter.cfm
Verb Usage:
populate.cfm
Verb Usage:
read.cfm
Verb Usage:
<transfer:parameter name="id" value="#attributes.id#" />
</transfer:read>
save.cfm
Verb Usage:
Additional Information
-
Custom Fusebox Lexicons Building Your Custom Fusebox Lexicons
- Extending Framework Extending Fusebox Framework
Lexicons
External Links
-
Fusebox.org Essentials Contains lexicons for Coldfusion, Coldspring, ORM, and Reactor.