Zope ZPT Using global variables

Zope page template example using a global variable to store a counter.
<ul tal:define="global displayedCount python: 0;">
<tal:loop repeat="feature features">
		<tal:update define="global displayedCount python: displayedCount + 1;" 
			    content="displayedCount" />  
Posted by
Snippet Viewed 1685 times.

Share your Zope ZPT code snippets:

  • Get some recognition & link back to your site.


Submit | Browse

Most Recent zope zpt snippets

Most Viewed