[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Appendix C: Zope Page Templates Reference

webmaster@zope.org webmaster@zope.org
Wed, 27 Nov 2002 16:48:20 -0500


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixC.stx#3-60

---------------

      Defining two variables, where the second depends on the first::

        tal:define="mytitle template/title; tlen python:len(mytitle)"

        % Anonymous User - Sep. 3, 2002 8:50 am:
         ignore t by tlen

        % Anonymous User - Nov. 27, 2002 4:48 pm:
         how do you access the defined vars from a python call?
         i.e. <span tal:replace="python:method(mytitle)"> value </span>