Finishing the Processing

We’re finished! The entire request is nearly done processing; the result of the entire fuseaction, including all the nested layouts, is stored in the API variable fusebox.layout. All that is left is to output the variable:

1 <cfoutput>#trim(fusebox.layout)#</cfoutput> 
2 </cfprocessingdirective><cfsetting enablecfoutputonly="no"> 

Line 1 is the magic line of the core file; it outputs the complete value of the entire contents of the request. Any output in a file that the core file has called is stored in fusebox.layout. The trim() function crops whitespace from the final output, which allows Fusebox to be used to generate SOAP-based web service requests as well as requests from Flash.

Get Fusebox: Developing ColdFusion® Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.