9 Sep
2004
9 Sep
'04
1:37 p.m.
I've seen the other replies, but I think your original example should work too (I haven't used dtml in a long time, so I'm not sure). The problem here is that each "<dtml-in>" has to have an own closing tag:
<dtml-if id_historie> <dtml-in expr="dbSelect(id_historie=_.str(id_historie))"> Do something </dtml-in> <dtml-else> <dtml-in expr="dbSelect(id_historie=_.str(0))"> Do another thing </dtml-in> <dtml-if> Ops, I realized that this peace of code is ineficient and the <dtml-let> suggestion is better. Anyway, keep on mind that for each <dtml-in> you have to have a </dtml-in>