I (aspinelli@imteam.it) have added a feature to the
TMPL_IF tag: if the
<em>equals</em> attribute is set, the condition
evaluates to true
if and only if the value of the variable (which must be
a String)
<em>equals</em> the value of the attribute. The same
behaviour
applies to TMPL_UNLESS.
For instance
<TMPL_IF name="foo" value="bar">
Some HTML Text
</TMPL_IF>
This does not follow the route set by HTML::Template,
which is to have a <em>expression</em> attribute to
evaluate,
because we not have any eval here in Java-land.
On the other hand, IMHO, many things can be done just
with string equality and inequality; since it is a
20-line change, I think it is worth the while.
I did not investigate fully the tests, so some of them are
now broken; is there somebody more competent than me
able to fix things up?
By the way, is somebody alive there (latest messages
belong to 2002) ?
Hello
Andrea
Entire distribution