Enable [if-index REF first]

git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@333 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/V0_8
gstein 2001-11-18 10:22:36 +00:00
parent 1e082e2982
commit 45d1849883
1 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,8 @@ class Template:
value = idx % 2 == 0
elif value == 'odd':
value = idx % 2 == 1
elif value == 'first':
value = idx == 0
elif value == 'last':
value = idx == len(list)-1
else: