View previous topic :: View next topic |
Author |
Message |
andreasr Smarty n00b
Joined: 22 Oct 2006 Posts: 2
|
Posted: Mon Oct 23, 2006 12:16 am Post subject: |
|
|
I've been using smarty for a while now, and here are my two cents about what Smarty 3 should be like:
- Don't fix it if it's not broken. Smarty has gained huge popularity just by being Smarty. Don't ruin a success recipe with XML/XSLT/Whatever madness. I mean it! Don't!
- Better support for objects in the templates. Anyone recognize this: {$obj->method()->field}? Or even {include file="stuff.tpl" title=$obj->method()->field}.
Ethical questions about the evil template designer and his access to setter method is strictly hypothetical, bordering the paranoid. Kind of like those crazy overdone captcha systems where you often really can't make out what the captcha actually says.
Anyway, if it's such a big deal, add a strict mode or something that throws a compilation error if the programmer sends an object to the template. I mean geez, this could have been fixed MONTHS if not YEARS ago (while keeping backwards compatability too).
- Try experimenting with lexer generators. Maybe some Lex-like flavour such as PHP_LexerGenerator. This could potentially cut development time and increase the level of sanity and consistency in the lexer.
That's about it for now. If I get any more ideas, I will come back and post in a similar flammable manner
Last edited by andreasr on Mon Oct 23, 2006 9:58 am; edited 2 times in total |
|
Back to top |
|
Aliba Smarty Rookie
Joined: 31 May 2003 Posts: 14
|
Posted: Mon Oct 23, 2006 6:36 am Post subject: |
|
|
Optimize to work efficiently with APC. |
|
Back to top |
|
deixu Smarty Rookie
Joined: 27 Jun 2003 Posts: 9 Location: Wolfsburg, Germany
|
Posted: Tue Oct 24, 2006 6:16 pm Post subject: |
|
|
As boots suggested, we should start a wiki.
I'll setup one on my server tomorrow morning.
Let's use "dowdy" or smth else as a working title.
So it's not officially related to smarty, but it could be some day.
Anyone against it? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Oct 24, 2006 6:48 pm Post subject: |
|
|
deixu wrote: | As boots suggested, we should start a wiki.
I'll setup one on my server tomorrow morning.
Let's use "dowdy" or smth else as a working title.
So it's not officially related to smarty, but it could be some day.
Anyone against it? |
How about we use a dummy, placeholder name? I suggest "dummy" |
|
Back to top |
|
andreasr Smarty n00b
Joined: 22 Oct 2006 Posts: 2
|
Posted: Tue Oct 24, 2006 7:25 pm Post subject: |
|
|
Dummy sounds good to me |
|
Back to top |
|
deixu Smarty Rookie
Joined: 27 Jun 2003 Posts: 9 Location: Wolfsburg, Germany
|
Posted: Wed Oct 25, 2006 2:48 pm Post subject: |
|
|
Okay Dummy sounds fine.
I have used MediaWiki.
http://dummy.deixu.net |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Oct 25, 2006 9:35 pm Post subject: |
|
|
anything wrong with "smarty" ? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Oct 25, 2006 11:25 pm Post subject: |
|
|
mohrt wrote: | anything wrong with "smarty" ? | The idea was not to use the official name until something substantial is produced and approved. Then it might be adopted officially. Its in the thread a few posts up |
|
Back to top |
|
deixu Smarty Rookie
Joined: 27 Jun 2003 Posts: 9 Location: Wolfsburg, Germany
|
Posted: Wed Nov 22, 2006 9:12 pm Post subject: |
|
|
I have just read through the whole thread and added some of the ideas to the wiki.
If i have missed something or got it wrong feel free to correct it.
Please register in the wiki and contribute your Ideas and/or Code. |
|
Back to top |
|
Dasher Smarty Pro
Joined: 16 May 2007 Posts: 124 Location: Italy
|
|
Back to top |
|
Dasher Smarty Pro
Joined: 16 May 2007 Posts: 124 Location: Italy
|
Posted: Sun May 20, 2007 4:49 pm Post subject: |
|
|
There's no reason why an XML/XLST interface can't reside on top of the core Smarty 3 engine.
A light interpreter should be fairly simple to implement. _________________ General Blog: http://dasher.wordpress.com
VoIP & SIP: http://blog.sipx.ws |
|
Back to top |
|
czarnowski Guest
|
Posted: Sun May 20, 2007 5:23 pm Post subject: |
|
|
Quote: | make Smarty 3.x compatible with both PHP4 and PHP5 |
That is it !!
A small loader for php 4 and php 5 Environments. |
|
Back to top |
|
Dasher Smarty Pro
Joined: 16 May 2007 Posts: 124 Location: Italy
|
Posted: Sun May 20, 2007 5:31 pm Post subject: |
|
|
Umm - why?
Smarty V2 is fine for PHP 4.
Make a clean break - keep a compatibility layer for legacy templates - keep the syntax the same if it doesn't need to change - but dust off the codebase and embrace the optimisations that come with PHP5. _________________ General Blog: http://dasher.wordpress.com
VoIP & SIP: http://blog.sipx.ws |
|
Back to top |
|
Dasher Smarty Pro
Joined: 16 May 2007 Posts: 124 Location: Italy
|
|
Back to top |
|
Dasher Smarty Pro
Joined: 16 May 2007 Posts: 124 Location: Italy
|
Posted: Mon May 28, 2007 9:28 am Post subject: |
|
|
damn spam again on the dummy website.
I've cleared it out - but it might be worth using some kind of wiki spam checker.
Doesn't appear to be much activity on the wiki. _________________ General Blog: http://dasher.wordpress.com
VoIP & SIP: http://blog.sipx.ws |
|
Back to top |
|
|