This is the right way to do it, in general:
cfsavecontent var=content
#chr(60)#cfoutput
li.../li
#chr(60)#/cfoutput
/cfsavecontent
It's kind of ugly, however, and this will often work:
cfsavecontent var=content
[cfoutput
li.../li
[/cfoutput
/cfsavecontent
cfset content = replace(content, [cf, cf, all) /
cheers,
barneyb
On Thu, May 20, 2010 at 11:02 AM, daniel kessler dani...@umd.edu wrote:
I want to generate a file (by code) that has CF tags in it so that it can be
included into another file. I can write in the # by escaping them, but I
also want to escape the cold fusion tags so that they're not enacted when I
write the file, but rather when that generated file is included in another
file.
cfsavecontent variable=xml_counts
ul style=margin-top:-10px;
cfloop condition=ea_date gte start_date
cfoutput
---
I don't want the following cfoutput tag to be enacted by rather written into
the file,
so that when it's included into another file, it has the cfoutput
tag to work. I need to escape the tag. How to do that?
---
cfoutput
lia href='##the_page##?archive=#the_content#/li
/cfoutput
/cfloop
/ul
/cfsavecontent
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333859
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm