Debian Codegraph @

test/html/nesting.htm

raw
1 <html>
2 <head>
3 <title>Tests for Embperl - Nesting of html and meta commands</title>
4 </head>
5
6
7 <body>
8
9 [-
10 $fdat{aa} = 11 ;
11 $fdat{bb} = 22 ;
12 $fdat{cc} = 33 ;
13 $fdat{dd} = 44 ;
14
15 $t = 1 ;
16 $f = 0 ;
17
18 -]
19 [- @ks = sort keys %fdat -]
20
21 <table>
22 <tr>
23 <td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
24 </tr>
25 </table>
26
27 [#
28 [$if $t $]
29 <table>
30 <tr>
31 [$endif$]
32 <td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
33 [$if $t $]
34 </tr>
35 </table>
36 [$endif$]
37 #]
38
39 [$if $f $]
40 <table>
41 <tr>
42 [$endif$]
43 <td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
44 [$if $f $]
45 </tr>
46 </table>
47 [$endif$]
48
49
50 <!-- [ + + ] -->
51
52 [- $count = 0 -]
53 <DL>
54 [$ while $count < 10 $]
55 <DL>
56 <DD>[+ $count +]
57 </DL>
58 [- $count++ -]
59 [$ endwhile $]
60 </DL>
61
62
63 <!-- print OUT -->
64
65 [- $count = 0 -]
66 <DL>
67 [$ while $count < 10 $]
68 <DL>
69 <DD>[- print OUT $count; -]
70 </DL>
71 [- $count++ -]
72 [$ endwhile $]
73 </DL>
74
75
76
77 </body>
78 </html>