Re: [SMARTY] Re: migrating to Smarty..
| From: | messju mohr | Date: | Wed, 26 Feb 2003 09:20:15 +0000 |
| Subject: | Re: [SMARTY] Re: migrating to Smarty.. | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8211@lists.php.net to get a copy of this message | ||
On Tue, Feb 25, 2003 at 02:40:25PM -0800, Ajay Sharma wrote:
> On Tue, 2003-02-25 at 04:10, Dr Tarique Sani wrote:
> > On Tue, 25 Feb 2003, jun wrote:
> >
> > On a related note has anyone extended Smarty in such a way that it can
> > serve as a drop in replacement for PHPlib templates?
> >
> > Did anyone try? Is it (im)possible
> >
> > If the answers are no then we intend to give it a try ;)
>
> I would think that it's impossible since Smarty is so different then
> PHPlib. Plus the Smarty syntax does way more to abstract the
> presentation layer from the business logic. I swore by PHPlib for a
> long time but Smarty is just better because it fixes all the things that
> suck in PHPlib templates.
>
> later,
> ajay
i don"t know phplib's templates very well. i skimmed through the docs
and i think it is possible to a certain extend. of course there are
problems, since smartie's approach differs a lot from phplib's (in
smarty you have to decide some things at compile-time, but in Template
there is no distinction between compile-time and display-time, so
things like Template::unknowns can be problematic), but i would
consider it possible.
i think you will always find a guy that uses some undocumented
side-effect of the class Template, that isn't covered by a smarty
"emulation". but a solution that helps migrating from Template to
Smarty and works out of the box in >90% of applications of Template
shouldn't be that complicated.
have fun
messju