Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Cheetah

Date:06/10/06
Author:Ilan Schnell
URL:http://ilan.schnell-web.net/
Comments:0
Info:http://cheetahtemplate.org/
Score: (2.33 in 3 votes)
#*
 *        Author: Ilan Schnell
 *
 *   Description: Fully compliant (including last verse) version of
 *                99 Bottles of Beer.
 *
 *           Run: cheetah fill beer.tmpl
 *
 *  More details: http://cheetahtemplate.org/
 *#
#for $n in range(99,0,-1)
$beers($n) on the wall, $beers($n).
Take one down and pass it around, $beers($n-1) on the wall.

#end for
No more bottles of beer on the wall, $beers(0).
Go to the store and buy some more, $beers(99) on the wall.
#def beers($n)
  #if $n==0
no more bottles#slurp
  #else
    #set $s = n != 1 and 's' or ''
$n bottle$s#slurp
  #end if
 of beer#slurp
#end def

Download Source | Write Comment

Alternative Versions

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: