This is true... I'll just have to see if there's
a significant delay without the caching.

I have to wonder today, with high-speed bandwidth
so prevalent, if caching is even an issue anymore.



-----Original Message-----
From: Lists [mailto:li...@commadelimited.com] 
Sent: Thursday, April 14, 2011 1:51 PM
To: cf-talk
Subject: Re: Parsing .css files with CF


One thing to consider with this approach is that you lose the browser
caching benefits. 

Is writing a CSS file at variable change time an option?

On Apr 14, 2011, at 11:21 AM, "Rick Faircloth" <r...@whitestonemedia.com>
wrote:

> 
> So just use:
> 
> style.cfm
> ---------
> 
> <cfcontent type="text/css" charset=ISO-8859-1">
> <cfset variables.color = "##fff">
> 
> <cfoutput>
> 
> body { color:#variables.color#; }
> 
> </cfoutput>
> 
> Then in calling doc:
> <link rel="stylesheet" href="style.cfm" text="text/css" />
> 
> ???
> 
> Also, I got the "charset=ISO-8859-1" from an example.
> Is that necessary or important, and why?
> 
> 
> 
> -----Original Message-----
> From: John M Bliss [mailto:bliss.j...@gmail.com] 
> Sent: Thursday, April 14, 2011 12:05 PM
> To: cf-talk
> Subject: Re: Parsing .css files with CF
> 
> 
> Nah.  Just use .cfm and cfcontent to set the type of the .cfm to .css and
> then you can actually call the .cfm where you'd usually call your .css
file
> in HTML.  I promise it's easier done than said.  :-)
> 
> On Thu, Apr 14, 2011 at 11:02 AM, Rick Faircloth
> <r...@whitestonemedia.com>wrote:
> 
>> 
>> So, is setting up IIS to cause CF to parse
>> CSS files still the best way to accomplish
>> using variables in CSS files?
>> 
>> 
>> 
>> 
> 
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343731
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to