[2.0] Smarty3

Mark threads with "[2.0]" for discussions about features in the longer-term future, "[1.6]" is for short-term. This is not the place for general discussions or plugin or template requests. Only features that are approved to happen by the core team should be listed here for better structuring.
User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: [2.0] Smarty3

Post by garvinhicking » Wed Nov 30, 2011 11:13 pm

Hi!

I cannot imagine that they will drop the old foreach syntax. This is one of the most important syntaxes of Smarty anywhere; the developers surely cannot drop such a central notation in favor of a harder to understand syntax. If people would want such an notation, they would use PHP and not a template processor.
Start working just to drop '@' does not make real sense to me. I like the shorter ALL CAP constant also, but it is an extra parsing and I am not sure it is in general a good idea to bend notations of third party software. If we could stay clean here, would allow us to broad the base of developers...
But we'll have to keep the old $CONST replacement for some longer time to come, so we also won't be able to really benefit from those changes right now. I'd like to hear other people about how they feel on $CONST vs. $smarty.const. notation and readbility.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
Manko10
Regular
Posts: 50
Joined: Sun Dec 26, 2010 5:58 pm

Re: [2.0] Smarty3

Post by Manko10 » Sat Dec 03, 2011 2:18 pm

Seems I kicked something off here. :-)

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: [2.0] Smarty3

Post by Timbalu » Fri Apr 13, 2012 11:11 am

@Garvin, we should purge the Smarty3 branch on GitHub, as it is outdated and confusing.

This might be of special interest coding Serendipity templates....
I just found a very nice Smarty Plugin by Rodney Rehm.
Its called Smarty Booster Plugin and can be found here: https://gist.github.com/2358670
Its purpose is to boost and minify JS and CSS files into one file each.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

Locked