| 1 |
[- |
| 2 |
$r = shift ; |
| 3 |
$r -> config -> output_mode (1) ; |
| 4 |
$escmode = 12 ; |
| 5 |
-] |
| 6 |
|
| 7 |
<html> |
| 8 |
<head> |
| 9 |
<title>Embperl Tests - XHTML output</title> |
| 10 |
</head> |
| 11 |
|
| 12 |
<body> |
| 13 |
|
| 14 |
[- $a = 1 -] |
| 15 |
|
| 16 |
[$if $a$] |
| 17 |
a <br> |
| 18 |
[$ endif$] |
| 19 |
|
| 20 |
[- |
| 21 |
|
| 22 |
@c = ([1,"'2'"],['"3"',4]) ; |
| 23 |
-] |
| 24 |
|
| 25 |
|
| 26 |
<table> |
| 27 |
<tr> |
| 28 |
<td>[+ $c[$row][$col] +] </td> |
| 29 |
</tr> |
| 30 |
</table> |
| 31 |
|
| 32 |
[- |
| 33 |
%fdat = ( a => 1, b => "'2'", c => '"3"') ; |
| 34 |
@ffld = sort keys %fdat ; |
| 35 |
-] |
| 36 |
|
| 37 |
[$hidden$] |
| 38 |
|
| 39 |
--- NO slashes in the source --- |
| 40 |
|
| 41 |
|
| 42 |
<input type="text" name="b"> |
| 43 |
<input type="text" name="c"> |
| 44 |
|
| 45 |
<a href="bla.htm">bla</a> |
| 46 |
|
| 47 |
<select name="a"> |
| 48 |
<option>xxx</option> |
| 49 |
</select> |
| 50 |
|
| 51 |
--- slashes in the source --- |
| 52 |
|
| 53 |
<input type="text" name="b" /> |
| 54 |
<input type="text" name="c"/> |
| 55 |
|
| 56 |
<input type="checkbox" name="a" value="1" /> |
| 57 |
<input type="checkbox" name="a" value="2" /> |
| 58 |
<input type="checkbox" name="a" value="3" checked="checked" /> |
| 59 |
<input type="checkbox" name="b" /> |
| 60 |
<input type="checkbox" name="c"/> |
| 61 |
|
| 62 |
<a href="bla.htm">bla</a> |
| 63 |
|
| 64 |
<select name="a"> |
| 65 |
<option>xxx</option> |
| 66 |
</select> |
| 67 |
|
| 68 |
|
| 69 |
<blabla /> |
| 70 |
<blabla/> |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
</body> |
| 78 |
</html> |