[Htmltmpl] New TMPL_IF functionality
Brought to you by:
jakubvrana,
tripiecz
|
From: Richard F. <bl...@fe...> - 2004-02-24 01:29:27
|
All, I started using the blog aggregator planeplanet scripts a few days ago that take advantage of your htmltmpl scripts. I made some additions and thought you guys might like them too. I needed some extended IF functionality so I added a new tag <TMPL_IF_MATCH>. It allows you to do regular expression searching on the value of the variable. here is an example <TMPL_IF_MATCH title REGEX=3D"^Planet.*"> .. </TMPL_IF_MATCH> I also had to modify the tokenizer expression to allow the pass through of the regular expression special characters. -- Richard Ferguson |