Calling FB3Lite as a Custom Tag

Today at work, Joshua wanted to invoke one of our FB3Lite apps from within an external CFM file (a CMS template) to reuse some code.  So I added a little snippet to the top of index.cfm to detect if it's being called as a custom tag and only execute during the start phase.  So you can do this:

<cfimport prefix="myapp" taglib="/path/to/fb3lite/app" />
<myapp:index do="myFuseaction" />

and you'll only get a single execution of the app, instead of one for each half of the custom tag.  This is a piece of functionality that real Fusebox has always had, but which I'd never used and so hadn't incorporated.

As always, the latest is available in Subversion at

Comments are closed.