[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Advanced
Page Templates
webmaster at zope.org
webmaster at zope.org
Mon Jan 12 06:27:40 EST 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx#3-8
---------------
You've already met the 'tal:attributes' statement. You can use
it to dynamically replace tag attributes, for example, the
'href' attribute on an 'a' element. You can replace more than
one attribute on a tag by separating attributes with
semicolons::
<a href="link"
tal:attributes="href here/getLink;
class here/getClass">link</a>
% misza - Jan. 12, 2004 6:27 am:
In this code for tag <a> will be generated attribute class.
After parse it will look sth like:
<a href="someURL" class="someCssClass">link</a>
More information about the ZDP
mailing list