Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2846c2b6fe3a964eff4f3b3c12eee018 > files > 539

apache-HTML-Embperl-2.2.0-8mdv2010.0.i586.rpm

<html>
<head>
<title>Tests for Embperl - Nesting of html and meta commands</title>
</head>


<body>

[-
$fdat{aa} = 11 ;
$fdat{bb} = 22 ;
$fdat{cc} = 33 ;
$fdat{dd} = 44 ;

$t = 1 ;
$f = 0 ;

-]
[- @ks = sort keys %fdat -]

<table>
	<tr>
		<td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
	</tr>
</table>

[#
[$if $t $]
<table>
	<tr>
[$endif$]
		<td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
[$if $t $]
	</tr>
</table>
[$endif$]
#]

[$if $f $]
<table>
	<tr>
[$endif$]
		<td>[+ $ks[$row] +]</td><td>[+ $fdat{$ks[$row] || ''} +]</td>
[$if $f $]
	</tr>
</table>
[$endif$]


<!-- [ + + ] -->

[- $count = 0 -]
<DL>
     [$ while $count < 10 $]
        <DL>
            <DD>[+ $count +]
        </DL>
        [- $count++ -]
     [$ endwhile $]
</DL>


<!-- print OUT -->

[- $count = 0 -]
<DL>
     [$ while $count < 10 $]
        <DL>
            <DD>[- print OUT $count; -]
        </DL>
        [- $count++ -]
     [$ endwhile $]
</DL>



</body>
</html>