real world custom lexicon

Fusebox Add comments

With the 4.1 ’alpha’ custom lexicon has been introduced to enable us to write our own verbs and it really is quite cool!

At the moment you can’t create verbs than have child elements or closing tags without having to cheat a little bit. When we were first discussing the custom lexicon implementation Steve Nelson asked if it was possible to wrap <include>’s inside a <cftransaction> block, i wrote a ‘transaction’ verb which lets me do it - with a little bit of cheating.

<jb.transaction mode=“start”>
   <include template=“act_somefuse.cfm” />
   <include template=“act_anotherfuse.cfm” />
</jb.transaction mode=“end”>

You can download the verb, here. REMEMBER though custom lexicon is in 4.1 beta release strictly as a proof of concept, it might not be present in later versions! Youll need to register a lexicon custom name space and path in fusebox.xml.cfm to use the verb.

One Response to “real world custom lexicon”

  1. crab Says:

    That’s exactly what I looking for~
    Thank you!!!

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in