[OT] Tool for adding server side code to CSS files

2007-05-29 Thread Andrew Robinson
It can be really annoying to customize CSS files per browser type, using CSS hacks to identify Firefox, IE6 vs. IE7, etc. Instead, it would be much better to use server side code to parse some kind of CSS templates that are able to produce CSS with access to variables like browser vendor and

Re: [OT] Tool for adding server side code to CSS files

2007-05-29 Thread Mike Kienenberger
I can't remember if my web designers have had to use this, but at least under Velocity, there's an escape XML function you can call if you have the escapeTool installed. http://velocity.apache.org/tools/devel/generic/EscapeTool.html On 5/29/07, Andrew Robinson [EMAIL PROTECTED] wrote: It can

Re: [OT] Tool for adding server side code to CSS files

2007-05-29 Thread Adam Winer
Trinidad skinning supports this functionality. You define a .css file with CSS-style extensions, and can have: @agent ie { ... this will only be applied in IE } @agent gecko { ... only in mozilla } ... and we output pure .css files when done. The tr:styleSheet tag then generates and picks