I'm sorry, after all that I am not sure what you are asking?
I can think of a couple of ideas for what I think you are trying to do. But I'm uncertain on how much effort to expend before I understand what you really are trying to figure out.
You may want to look at the onRequest(), onRequestStart() and onRequestEnd() methods of an Application.cfc file. These methods, particularly the onRequest(), can allow you to apply a post render process to the response stream before it is returned to the client browser.
You may also want to look at some inteligence that might be able to be put into your template pieces. So that they can determine how to render the content based on some type of data.
Thirdly you may want to look at custom tags which are more intelligent then straight forward includes. You can create parameters and attributes that influence how the custom tag returns its results.
I'm sorry for the murkiness - let me clarify:
I have an HTML editor that resides within a template file (visual template) - a user can alter the content, create new content, etc. The user is allowed to choose the template file which to use.
When they are finished they can publish to an HTML/Java/CSS file (full website). I would like to use the same template file for both the editor/builder as well as the publish script.
Only minor changes are needed between the two as present - the first chunk of code in my original represents file1 - the file that is called for the editor.
The second chunk of code in origninal post represents file2 - the file that is called when the publish script is activated.
The thrid chunk of code in the original post is what I would like to create -
So i would like to have the section of code like this:
and replace the "[TEMPLATE_NAVIGATION]" on call with the proper <cfinclude> template. I can think of several solutions for this such as setting the include file as a variable in a different script or using CFIF, but if I could do it this way, it will greatly simplify the process by which I can build and install new templates into the system.
This would also allow me to update the system and its file structure (which is done frequently) without having to edit every template file as well.
Please let me know if I am still not being clear enough and thank you for your prompt response!
You still haven't clearly designated when and where you would like the token replaced.
The best suggestion I can make at this time is to look at the onRequest() method of the Application.cfc file. It would allow you to find a token like that and replace it with other content before the response if sent to the browser.