File: test.xslate

package info (click to toggle)
libhtml-template-compiled-perl 1.003-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 772 kB
  • sloc: perl: 4,759; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
===test.html 1==========================================
name: [% name %] look ma: ~
name with "": [% name %]
INCLUDE: ((([% INCLUDE "included.xslate" %])))
---------------
loop a:
[% FOREACH var IN loopa %]first?[% loop.first() %] or last?[% loop.last() %]
-----num:[% loop.index() %]
 item: [% var.a %]
[% END %]
loop b:[% FOREACH var IN loopb %]item: ROOT:[% (!loop.first && !loop.last)%][% END %]
loop c
---------------
[% FOREACH var IN c %]----num:[% loop.index() %]
[% FOREACH var IN d %]*[% IF loop.first() %]first[% END %][% IF loop.last() %]last [% END %][% IF (!loop.first && !loop.last) %]inner[% END %] item: [% F %][% IF (loop.index % 2) %]odd[% END %]
[% END %][% END %]
---------------------
[% IF if2 %]if.if2![% END %] [% IF if3 %]if.if3!  [% ELSE %]no if.if3![% END %] [% UNLESS if3 %]no if.if3!![% END %]
===test.html ende==========================================