If its just a variable your inserting, you can simply do the following..
#Evaluate(QueryName.Variab
If there is more then one variable on the template your best bet would be to write the template to the hard drive, include it, then delete it to clean up after yourself. If you go this route it will help to have a 7200 RPM hard drive, if not a 10K or 15K SCSI drive.
<cfset UniqueFileName="#CreateUUI
<cffile action="write" file="c:\#UniqueFileName#"
<cfinclude template="#UniqueFileName#
<cffile action="delete" file="c:\#UniqueFileName#"
Another idea is to use a RamDrive as the temporary storage means. I prefer RamDiskNT and it essentially puts a portion of your memory into a virtual disk, thus giving you near immediate access to that information.
Main Topics
Browse All Topics





by: danrosenthalPosted on 2003-04-22 at 12:33:23ID: 8375770
You could write the variable to a file (CFFILE) and then include that file. I am not sure this is the best method, especially if you are using these database templates frequently. You would also have to somehow guarantee that the temporary pages would not overlap between 2 simultaneous users, either by uniquely naming each temporary file, or by managing their use through a database table.