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:343721
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to