Re: [SMARTY-DEV] Bringing the {insert} functionality to other tags

From: Date: Mon, 29 Jul 2002 13:43:06 +0000
Subject: Re: [SMARTY-DEV] Bringing the {insert} functionality to other tags
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-227@lists.php.net to get a copy of this message
Hi Monte, Monte Ohrt wrote:
Who uses caching, and how would you implement it if you had your way? :-)
Up until now, I had a modified Smarty 1.4.x, with a so called 'default handler'. Dynamic tags where not added with register_function, but all catched by my default tag handler (I modified Smarty so it passed tags it didn't know to my default handler). This handler decided, based on the information that I passed when I registered the tag (with my own register function) wether to render the tag, or to leave it to the second stage (after caching) to render it. I'm now upgrading to Smarty 2.2.0, and now I've run into problems, since it's not easy to implement my default tag handler patch in the new Smarty. This is caused by the fact that missing tags are only discovered in the load_plugins function, where I miss the information (namely the parameters) to pass it to a default handler. If Smarty would have my proposed multistage renderer, I would no longer have this problem. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.dev (#227) next »