Re: [SMARTY-DEV] Smarty compiler
| From: | Victor | Date: | Wed, 06 Nov 2002 20:29:52 +0000 |
| Subject: | Re: [SMARTY-DEV] Smarty compiler | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-325@lists.php.net to get a copy of this message | ||
> 1) What does Smarty get out of it?
Easier to maintain in the long run, possible to do more advanced tasks, and
the ability to optimize the generated PHP-code better.
> 2) What do end users get out of it?
Faster template engine, more functions and (since it will be easier to
maintain) more releases.
> 3) What do developers get out of it?
Since it's easier to maintain (have I said this before), they get Friday
afternoon free! Well.. Perhaps not.
> 4) In other words, why is a 'real' compiler an improvement?
See above
> 5) Can it be done without breaking backward compatibility,
> given current Smarty syntax?
Yes, I think so. I've created (together with a friend) a parser that does
almost the same work as Smarty.
> 6) If backward compatibility can't be maintained, is it time
> for a branch given the benefits? (Don't flame me, just posing
> the question :)
Even though it still is possible to keep it backward compatible, it would
still be a wise choice to improve the syntax in some ways. I, for example,
don't like the $smarty-variable the way it's used now.
> 7) What are some other other pros and cons?
It will be possible to add more error handling when compiling the template
for example.
Just my 2 cents
// victor@php.net
>
>
> >-----Original Message-----
> >From: Brandon Inman [mailto:brinman2002@yahoo.com]
> >Sent: Tuesday, November 05, 2002 6:38 PM
> >To: smarty-dev@lists.php.net
> >Subject: [SMARTY-DEV] Smarty compiler
> >
> >
> >Recently, someone threw out the suggestion of rewriting Smarty
> >as a 'real' compiler. I think this
> >is a good idea.
> >
> > Is anyone else out there interested in doing this? If no
> >one is interested in doing this, let
> >me know what else is out there. I'd like to get involved in
> >some fashion.
> >
> >Brandon Inman
> >
> >
> >__________________________________________________
> >Do you Yahoo!?
> >HotJobs - Search new jobs daily now
> >http://hotjobs.yahoo.com/
> >
> >--
> >Smarty Development Mailing List (http://smarty.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>