On 20-May-08, at 5:43 PM, Jon Baldivieso wrote:
The main win (for us at least) for using DTML in our CSS isn't logic, per se; it's the ability to grab the portal_url variable so that we can set background images with an absolute url. (We do that in every single customized theme we create, and like Wiggy, I shudder at the thought of doing that in ZPT.)_______________________________________________

There's no logic in there, just variable substitution. I've always thought the simplest and probably lowest barrier to entry way to output the CSS would be using python strings. All it needs is:

background-image: %(absolute_url)s/someicon.gif

Point people to the Python docs for string substitution and move on to bigger issues.
--
  andy

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to