Language Zope-PageTemplates
Date: | 08/22/05 |
Author: | Berthold Stöger |
URL: | n/a |
Comments: | 0 |
Info: | http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx |
Score: | (2.88 in 124 votes) |
<html> <head> <title>99 Bottles of Beer</title> </head> <body> <p tal:repeat="bottles python:range(99,-1,-1)"> <tal:x tal:condition="bottles" tal:replace="bottles" /> <tal:x tal:condition="not:bottles">No more</tal:x> bottle<tal:x tal:condition="python:bottles > 1">s</tal:x> of beer on the wall, <tal:x tal:condition="bottles" tal:replace="bottles" /> <tal:x tal:condition="not:bottles">no more</tal:x> bottle<tal:x tal:condition="python:bottles != 1">s</tal:x> of beer. <br /> <tal:x tal:condition="bottles"> Take one down and pass it around, <tal:x tal:condition="python:bottles - 1" tal:replace="python:bottles - 1" /> <tal:x tal:condition="python:bottles == 1">no more</tal:x> bottle<tal:x tal:condition="python:bottles != 2">s</tal:x> of beer on the wall, </tal:x> <tal:x tal:condition="not:bottles"> Go to the store and buy some more, 99 bottles of beer on the wall. </tal:x> </p> </body> </html>
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments