[% # 99 beers for the Template Toolkit (http://www.template-toolkit.org/) # Author: David Mullen -%] [%- BLOCK bottles -%] [% beers or 'No' %] bottle[% beers == 1 ? '' : 's' %] of beer [%- END -%] [%- beers = 99; WHILE beers > 0 %]
[% PROCESS bottles %] on the wall,
[% PROCESS bottles %],
You take one down, pass it around,
[% beers = beers - 1; PROCESS bottles %] on the wall.