Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Chris Withers
(keep on list ;-) Dylan Jay wrote: so how do you get a CSS file with ZPT code in that is a valid CSS file and works on the filesystem? Urm? If you mean prior to rendering the ZPT, the nthat wasn't a usecase you specified ;-) If you mean post-rendering, use a PageTemplateFile and whatever you

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Jamie Heilman
Chris Withers wrote: Dylan Jay wrote: disadvantage that the css is no longer valid once templated. ZPT of course would be the solution if CSS was XML, but alas :( I think ZPT is just fine for generating CSS. It coudl do with a plan text mode, like it has an HTML and XML mode, but apart

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Dylan Jay
- Original Message - From: Jamie Heilman [EMAIL PROTECTED] To: Chris Withers [EMAIL PROTECTED] Cc: Dylan Jay [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:13 PM Subject: Re: [Zope-dev] ZPT for CSS, anyone? Chris Withers wrote: Dylan Jay wrote: disadvantage

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Jamie Heilman
Dylan Jay wrote: Actually my use case isn't really for dynamic stylesheets but for absolute urls. I want to be able to edit say a filesystem site using dreamweaver and have relative urls like background-image: url(back.jpg) work, and then when this is used in a zope site such as a plone site

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Dieter Maurer
Jamie Heilman wrote at 2004-3-30 02:13 -0800: ... Stylesheets should always be static documents, a dynamic stylesheet defeats browser caching and destroys the advantages over just inlining all the presentation markup. We just converted some stylesheets from static to dynamic. Some parts of the

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-30 Thread Fred Drake
On Tuesday 30 March 2004 01:40 pm, Dieter Maurer wrote: Furthermore, stylesheets often contain customization variables, e.g. for a color scheme. I think, this is useful. This is one of the most painful warts in CSS that would have been really easy to do right, I think. Being able to name

Re: [Zope-dev] ZPT for CSS, anyone?

2004-03-29 Thread Chris Withers
Dylan Jay wrote: disadvantage that the css is no longer valid once templated. ZPT of course would be the solution if CSS was XML, but alas :( I think ZPT is just fine for generating CSS. It coudl do with a plan text mode, like it has an HTML and XML mode, but apart fro mthat, it rocks :-)