[zope2-tracker] [Bug 452259] Re: TAL blocks inside <style> result in parse error

Wichert Akkerman wichert at wiggy.net
Fri Oct 16 04:38:59 EDT 2009


There is a workaround, but it is so awful you might want to avert your
eyes before looking at it:

    <tal:block define="logo webhelpers/sector_logo" condition="python:logo">
      <tal:pain replace="structure string:&lt;"/>style type="text/css"<tal:pain replace="structure string:&gt;"/>
        #navigation li#home {
          background: url(<tal:block replace="logo"/>) no-repeat;
        }
      <tal:pain replace="structure string:&lt;"/>/style<tal:pain replace="structure string:&gt;"/>
    </tal:block>

As a final note I'ld like to add that chameleon.zpt does not suffer from
this problem.

** Also affects: zope3
   Importance: Undecided
       Status: New

** Also affects: grok
   Importance: Undecided
       Status: New

-- 
TAL blocks inside <style> result in parse error
https://bugs.launchpad.net/bugs/452259
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.


More information about the zope2-tracker mailing list