Por lo pronto todo esto funciona, a ver si luego en un ratín lo pongo online. La condición de cada bloque IF acepta cualquier forma de condición de PHP :)
Código de una plantilla:
Código:
<html xmlns="http://www.w3.org/1999/xhtml" lang="es" >
<head>
<title>${title}</title>
</head>
<body>
<if condition="error">
<p>Ha ocurrido un error, o al menos eso indica ${error}</p>
</if>
<if condition="1 < 2">
<p>1 es menor que 2, siempre!</p>
</if>
<if condition="(14%2) == 0">
<p>El 14 es par</p>
</if>
<if condition=" ( 14 % 7) == 0">
<p>Adems, el 14 es mltiplo de 7</p>
</if>
<table id="month" cellspacing="0" cellpadding="0" border="1">
<thead>
<tr>
<th>L</th>
<th>M</th>
<th>X</th>
<th>J</th>
<th>V</th>
<th>S</th>
<th>D</th>
</tr>
</thead>
<list name="mes" as="semana">
<tr>
<list name="semana" as="dia">
<td>${dia}</td>
</list>
</tr>
</list>
</table>
</body>
</html>