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

webmaster@zope.org webmaster@zope.org
Wed, 15 Jan 2003 10:37:23 -0500


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

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

      You use repeat variables to access information about the current
      repetition (such as the repeat index).  The repeat variable has
      the same name as the local variable, but is only accessible
      through the built-in variable named 'repeat'.

        % Anonymous User - Nov. 27, 2002 4:52 pm:
         Is there any other way to access a list element (besides using a repeat)? I can't find the syntax to do
         something like:
         <span tal:replace"results/list/index/0"></span>

        % Anonymous User - Jan. 15, 2003 10:37 am:
         Try <span tal:replace="python:list[0]"></span>