putting cf variables in non cf files...
I had asked a similar question before, but this one is a bit different (and that one wasn't really answered completely anyway). What I am trying to do is to read in a file that has cf variables in it (like '#VarName#'), and output it in the http response stream.
Basically, I am trying to create a themeable interface for my site. So, in my CSS files, for things like colors and backgrounds, I want to place something where I can swap out that placeholder for a value. This modified CSS content would be the only thing written to the stream, and altering the "content-type" header, it would be handled like a css file by the browser.
I though that if I used #'s to delimit variables, read the file, set the variables, and then use CFOUTPUT, I could do this. Well, I guess I was wrong. No errors were being thrown, and I was just getting the '#VarName#' directly in the output.
Then, I though about using a CFINCLUDE, and I used it in inline code, within a CFOUTPUT, and also a CFSAVECONTENT, but I was still just getting '#VarName#' in the output.
If possible, I want to stay away from having to do a global string replacement, but if that is the only way...
Does anyone have a way in which to do the task at hand? I'll keep playing with it, and if I find something, I will let you all know...
