Since HTML and CFML are 2 different things (CFML generates HTML), the easiest way to do this is to do a massive extension change from .html to .cfm (this will make it so that when the page is requested, it is passed off to ColdFusion to be processed)
At that point, you can use the application.cfc to wrap the call to the requested page in <cfoutput> tags. A ColdFusion page could handle the file renaming. Something like this (check it before you run it)
directory="#expandPath( '/absolute/path/to/root/html/folder' )#"
destination="#directory##listFirst( name, '.' )#.cfm" />
Well, the problem is, this site has html files which are in subdirectories. For example folder1 has 3 html files and contains folder 2. Folder 2 contains folders 3 and 4, both of which have html files. Is there a way to set up the cfdirectory to look at all files in the entire site this way?
Thanks for your help!
It already is. The RECURSE attribute was set to TRUE. This means it will go down into all subfolders looking for .html files as well rather than just stay at the initial directory specified.