Compiled Template embed_escape.adp
set __adp_output {}; set __ad_conn_locale [ad_conn locale]
append __adp_output "<html>
<head>
<title>Demo: Embed Escape</title>
</head>
<body>
<h1>Welcome</h1>
<p>
"
if { $x == 5 } {
append __adp_output "
Yes, <strong>x</strong> is indeed 5.
"
} else {
append __adp_output "
No, <strong>x</strong> is not 5.
"
}
append __adp_output "
</p>
<table>
"
foreach creature [list giraffe lion antelope fly] {
if [regexp {a} $creature] {
append __adp_output "
<tr bgcolor=\"#eeeeee\">
"
} else {
append __adp_output "
<tr>
"
}
append __adp_output "
<td>"
append __adp_output $creature
append __adp_output "</td>
</tr>
"
}
append __adp_output "
</table>
</body>
</html>
"
set __adp_output