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 like to do is  CFCONTENT them directly to the
> response output stream.
 
> 
> Can I "pipe" them to the output by using CFCONTENT?  My goal is to
> basically CFINCLUDE  but i dont want to compile the include file, 
> just
> pipe it to the browser, and it's part of the renderable page...
 
> 
> Thanks!
> -dov
 
> 
> My code would look like this....
 
> 
 
> 
> <html><head><body>
> <CFCONTENT file="header-static-html.txt">
 
> 
> yada yada yada....
> <CFCONTENT file="footer-static.txt">
> yada
> </body></html> 
> --------------------------------------------------------
 
> 
> NOTICE: If received in error, please destroy and notify sender.  
> Sender does not waive confidentiality or privilege, and use is 
> prohibited. 
 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185609
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to