File: benchmark

package info (click to toggle)
libtemplate-perl 2.22-0.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 9,512 kB
  • ctags: 1,311
  • sloc: perl: 14,413; makefile: 15; sh: 5
file content (21 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[% PROCESS header
   title = 'This is a Test'
%]

Once upon a time there was a small caterpillar called Frank.  Frank was
very hungry so he went into the garden and ate all the cabbages.

Item:
[% FOREACH item = ['foo', 'bar', 'baz'] %]
   * [% item %]
[% END %]

People:
[% FOREACH person = people %]
   * [% person.id %] : [% person.name %] ([% person.email %])
[% IF person.isadmin -%]
     ** THIS PERSON IS AN ADMINISTRATOR **
[% END -%]
[% END -%]

[% PROCESS footer %]