Re: New looping method proposal

From: Date: Mon, 19 Nov 2001 11:32:22 +0000
Subject: Re: New looping method proposal
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1951@lists.php.net to get a copy of this message
Anders Janson wrote: > Facts: The functionality is already there. Template designers do have > to learn *some* syntax. the functionality _is_ there, it's only a simpler way of accessing it. and i think, it should be also possible to reuse the section compiler. > Personal opinions: Adding more code to Smarty just because the > original syntax doesn't look/feel OK sounds like a bad idea. the code overhead should not be that huge, i think. our site contains about 5000 cached pages (approx. 50MB HTML cache) with templates containing about 40 section tags, and no section used there needs more than the proposed features of e.g. foreach. so why not using a simple wrapper tag for section? life could be much easier. > However, if this new code could be kept to a minimum, and only > provide a new interface to the existing "{section}" code, maybe it's > worth a try. yes. :) -- andreas kossmeier bergfex.at - http://www.bergfex.at

« previous php.smarty.general (#1951) next »