Re: a question to HTML_Template_IT/ITX maintainers
| From: | Radek Maciaszek | Date: | Thu, 19 Sep 2002 08:43:25 +0000 |
| Subject: | Re: a question to HTML_Template_IT/ITX maintainers | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9190@lists.php.net to get a copy of this message | ||
Alexey Borzov wrote:
Greetings!Sounds cool! I'm using IT so i will be happy to look at your improvements. Cheers, ChiefSome time ago (when IT[X] was effectively not maintained) I borrowed it from PEAR and made some kind of private fork from it --- I liked its API and "ideology" very much.Now I have a class which is (mostly) API compatible with ITX but is alot cleaner, faster and well-tested in production environment.Advantages over ITX: * Transparent caching of parsed templates. I found out (the hard way) that findBlocks() call is VERY expensive. * faster parse(): fewer preg_replace() calls * Addition of "global" variables, hideBlock() method (an opposite of touchBlock())...Disadvantages: * One class instead of IT/ITX hierarchy * Callback functions are not supported * Comments and error messages are in Russian :] * Private API, variables and some subtle quirks are NOT compatible with ITXAs the class is effectively a rewrite, it is impossible to provide simple patches for IT[X]. So a question: are you interested in merging my work into the existing ITX code?