Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty 3.0: initial discussion
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
andreasr
Smarty n00b


Joined: 22 Oct 2006
Posts: 2

PostPosted: Mon Oct 23, 2006 12:16 am    Post subject: Reply with quote

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 Twisted Evil


Last edited by andreasr on Mon Oct 23, 2006 9:58 am; edited 2 times in total
Back to top
View user's profile Send private message
Aliba
Smarty Rookie


Joined: 31 May 2003
Posts: 14

PostPosted: Mon Oct 23, 2006 6:36 am    Post subject: Reply with quote

Optimize to work efficiently with APC.
Back to top
View user's profile Send private message
deixu
Smarty Rookie


Joined: 27 Jun 2003
Posts: 9
Location: Wolfsburg, Germany

PostPosted: Tue Oct 24, 2006 6:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Oct 24, 2006 6:48 pm    Post subject: Reply with quote

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" Smile
Back to top
View user's profile Send private message
andreasr
Smarty n00b


Joined: 22 Oct 2006
Posts: 2

PostPosted: Tue Oct 24, 2006 7:25 pm    Post subject: Reply with quote

Dummy sounds good to me Smile
Back to top
View user's profile Send private message
deixu
Smarty Rookie


Joined: 27 Jun 2003
Posts: 9
Location: Wolfsburg, Germany

PostPosted: Wed Oct 25, 2006 2:48 pm    Post subject: Reply with quote

Okay Smile Dummy sounds fine.

I have used MediaWiki.

http://dummy.deixu.net
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Oct 25, 2006 9:35 pm    Post subject: Reply with quote

anything wrong with "smarty" ?
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Oct 25, 2006 11:25 pm    Post subject: Reply with quote

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 Wink
Back to top
View user's profile Send private message
deixu
Smarty Rookie


Joined: 27 Jun 2003
Posts: 9
Location: Wolfsburg, Germany

PostPosted: Wed Nov 22, 2006 9:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dasher
Smarty Pro


Joined: 16 May 2007
Posts: 124
Location: Italy

PostPosted: Sat May 19, 2007 5:35 am    Post subject: Reply with quote

Spam getting through Shocked on the dummy wiki:

http://dummy.deixu.net/index.php/Main_Page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dasher
Smarty Pro


Joined: 16 May 2007
Posts: 124
Location: Italy

PostPosted: Sun May 20, 2007 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
czarnowski
Guest





PostPosted: Sun May 20, 2007 5:23 pm    Post subject: Reply with quote

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

PostPosted: Sun May 20, 2007 5:31 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Dasher
Smarty Pro


Joined: 16 May 2007
Posts: 124
Location: Italy

PostPosted: Sun May 20, 2007 7:18 pm    Post subject: Reply with quote

PHP Compatability?: http://dummy.deixu.net/index.php/Ideas:php5
_________________
General Blog: http://dasher.wordpress.com
VoIP & SIP: http://blog.sipx.ws
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dasher
Smarty Pro


Joined: 16 May 2007
Posts: 124
Location: Italy

PostPosted: Mon May 28, 2007 9:28 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10, 11, 12  Next
Page 9 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP