Menu

#1 Extensions to <if> tag

open
nobody
None
5
2003-03-08
2003-03-08
Anonymous
No

Thanks for taking up development on htp. I like the
improvements you've made.

Here are two features I miss from htp:

1) greater/less than comparisons in <if> and <while> tags.
You would have to tweak the parser to accept < and >
within a tag, or you could define new conditions like ".gt."
or ".lt.".

2) test for file existence with <if/while> tags. Something like
<if [not] exist="somefile.ext">...</if> This would make it
much easier for me to find my "root" folder via something
like:

<set rootpath="">
<while not exist="${rootpath}root.txt">
<set rootpath="../${rootpath}" global>
</while>

Thanks again for the work you're putting into this.

Cheers,
Rik Blok
rikblok@shaw.ca

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.