"A Fuse Box How-To" Vol. 2,Issue 2,
p.49

Listing 1:

<!-- actDeleteNote.cfm -->

<!---
|| actDeleteNote.cfm

|| I handle the database processing of deleting a note sent to me. When IÕm done, I return to the fusebox with a return fuseaction of ÒRFA.completionÓ.

|| hal.helms@TeamAllaire.com

||
--> noteID: a PRIMARY KEY from the Notes table
--> RFA.completion: a FUSEACTION to return to the fusebox with
++> DSN: an APPLICATION var of ODBC DATASOURCE
END FUSEDOC
--->

<cfoutput>
<h3>I'm #GetFileFromPath(GetCurrentTemplatePath())#, but I'm not implemented yet!</h3>
</cfoutput>

Listing 2:

<!--index.cfm-->

<!--- This custom tag takes the whitespace out of the docs generated by ColdFusion --->
<cf_stripWhitespace>

<!--- And now to trap any errors... --->
<cftry>

<!--- Part of the Fusebox spec is to convert all variables into attributes --->
<cf_formURL2Attributes>

<!--- Provide defaults --->
<cfparam name=Óattributes.fuseactionÓ default=ÓÓ>

<!--- The file myGlobals is where I store all my app-specific info. --->
<cfinclude template=ÓmyGlobals.cfmÓ>
 
<!--- Fuseaction defines the app's behavior --->
<cfoutput>

<!-- The current fuseaction is #attributes.fuseaction# -->
<cfswitch expression = Ò#attributes.fuseaction#Ó>

<cfdefaultcase>
 I received a fuseaction called Ò#attributes.fuseaction#Ó that hasnÕt been implemented yet.
</cfdefaultcase>
 
</cfswitch>

</cfoutput>

<!--- In case we get an error --->

<cfoutput>
<cfcatch type=ÓanyÓ>
 Whoops! There was an internal error.
 <br>Actually, it's probably something YOU did to screw things up!! <p>
Here's info on the error:
<cfoutput>
<br>
<b>Fuseaction:</b> #attributes.fuseaction#<br>
<b>Type</b>: #CFCATCH.Type#<br>
<b>Message</b>: #CFCATCH.Message#<br>
<b>Detail</b>: #CFCATCH.Detail#<br>
</cfoutput>

</cfcatch>
</cfoutput>

</cftry>

</cfoutput>

</cf_stripWhitespace>