Subject: Re: Incremental CFCONTENT?
It won't try to compile the file if there is no server mapping to the
.txt extension.
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it
is a JSP or CFM file. Is it the case
]
Sent: Monday, November 29, 2004 5:57 PM
To: CF-Talk
Subject: Re: Incremental CFCONTENT?
It won't try to compile the file if there is no server mapping to the
.txt extension.
extension?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
Can I pipe out parts of pages using CFCONTENT?
No, I'm pretty sure you can't if you use the FILE attribute of CFCONTENT.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
~|
Dov,
Unfortuantely, nope.
This might be one approach you could take:
cfsavecontent variable=output
htmlheadbody
/cfsavecontent
cffile action=write file=header-static-html.txt output=#output#
cfsavecontent variable=output
yada yada yada
/cfsavecontent
cffile action=write
Use cfset getPageContext().include(header-static-html.txt)
Can I pipe out parts of pages using CFCONTENT? I currently have an
cache_to_file tag which I wrote to cache parts of rendered pages to
file.
Right now I (inefficiently) CFFILE-Read them, then #output# the
contents. What I'd
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it is a
JSP or CFM file. Is it the case that it will not attempt to execute the page
if it isn't mapped to a specific executable file extension?
Dave Watts, CTO, Fig
It won't try to compile the file if there is no server mapping to the .txt
extension.
Use cfset getPageContext().include(header-static-html.txt)
It's my understanding that this will, in fact, execute the page if it is a
JSP or CFM file. Is it the case that it will not attempt to execute the
7 matches
Mail list logo