<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/html-tmpl-java/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/html-tmpl-java/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 09 Jan 2004 09:11:15 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/html-tmpl-java/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Extending TMPL_IF</title><link>https://sourceforge.net/p/html-tmpl-java/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I (aspinelli@imteam.it) have added a feature to the&lt;br /&gt;
TMPL_IF tag: if the&lt;br /&gt;
&amp;lt;em&amp;gt;equals&amp;lt;/em&amp;gt; attribute is set, the condition&lt;br /&gt;
evaluates to true&lt;br /&gt;
if and only if the value of the variable (which must be&lt;br /&gt;
a String)&lt;br /&gt;
&amp;lt;em&amp;gt;equals&amp;lt;/em&amp;gt; the value of the attribute.  The same&lt;br /&gt;
behaviour&lt;br /&gt;
applies to TMPL_UNLESS.&lt;/p&gt;
&lt;p&gt;For instance&lt;br /&gt;
&amp;lt;TMPL_IF name="foo" value="bar"&amp;gt;&lt;br /&gt;
Some HTML Text&lt;br /&gt;
&amp;lt;/TMPL_IF&amp;gt;&lt;/p&gt;
&lt;p&gt;This does not follow the route set by HTML::Template,&lt;br /&gt;
which is to have a &amp;lt;em&amp;gt;expression&amp;lt;/em&amp;gt; attribute to&lt;br /&gt;
evaluate,&lt;br /&gt;
because we not have any eval here in Java-land.&lt;/p&gt;
&lt;p&gt;On the other hand, IMHO, many things can be done just&lt;br /&gt;
with string equality and inequality; since it is a&lt;br /&gt;
20-line change, I think it is worth the while.&lt;/p&gt;
&lt;p&gt;I did not investigate fully the tests, so some of them are&lt;br /&gt;
now broken; is there somebody more competent than me&lt;br /&gt;
able to fix things up?&lt;/p&gt;
&lt;p&gt;By the way, is somebody alive there (latest messages&lt;br /&gt;
belong to 2002) ?&lt;/p&gt;
&lt;p&gt;Hello&lt;br /&gt;
Andrea&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrea Spinelli</dc:creator><pubDate>Fri, 09 Jan 2004 09:11:15 -0000</pubDate><guid>https://sourceforge.netb8d10027b99ba30c7eea650c12fa102a7ec210a4</guid></item></channel></rss>