Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59389 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56563 invoked from network); 7 Apr 2012 04:53:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 04:53:40 -0000 X-Host-Fingerprint: 178.199.109.179 179-109.199-178.cust.bluewin.ch Received: from [178.199.109.179] ([178.199.109.179:16630] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/B1-57786-258CF7F4 for ; Sat, 07 Apr 2012 00:53:39 -0400 Message-ID: <63.B1.57786.258CF7F4@pb1.pair.com> To: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Reply-To: sunseb@live.com Date: Sat, 07 Apr 2012 06:53:33 +0200 User-Agent: KNode/4.8.0 Content-Transfer-Encoding: 8Bit References: <3C.7D.30259.C0B5E7F4@pb1.pair.com> Lines: 83 MIME-Version: 1.0 X-Posted-By: 178.199.109.179 Subject: Re: [PHP-DEV] PHP as a template language From: sunseb@live.com (=?UTF-8?B?U8OpYmF0aWVu?= Durand) Thank you for your answers. I didn't want to create flaming. PHP is already damn good. I have tried Ruby/ROR, Python/Django, but I still prefer the flow of PHP. I personally like mixing PHP/HTML. It's not bad. It allows us to work with simplicity. For example : http://tinyurl.com/cyrlchw "Details make perfection and perfection is not a detail." (Leonardo da Vinci) But I was not completely aware of the level of change/break my suggestion will cause. I'm grateful the work you do. It was just a usability/cosmetic remark of a daily PHP user. I can live with it. ;-) Tom Boutell wrote: > To tell the truth I'd be more excited by a proposal to kill entirely, or more realistically, to support an alternate file > extension that doesn't need it. That would be an interesting option > for those who want to put "dribs and drabs of PHP sprinkled in HTML" > completely behind them. > > On Fri, Apr 6, 2012 at 5:19 PM, Tom Boutell wrote: >> I have to agree with that. Also: does PHP need to be a templating >> language anymore, given excellent templating language implementations >> in PHP, like Twig? >> >> On Fri, Apr 6, 2012 at 3:05 PM, John Crenshaw >> wrote: >>>> -----Original Message----- >>>> From: Sébatien Durand [mailto:sunseb@live.com] >>>> Sent: Thursday, April 05, 2012 10:55 PM >>>> To: internals@lists.php.net >>>> Subject: [PHP-DEV] PHP as a template language >>>> >>>> IMHO, PHP is a great template language. This is what makes it so simple >>>> and powerful, compared to other web languages. >>>> >>>> So far, we have ">>> >>>> A suggestion : deprecate these old tags and replace them with a more >>>> elegant and a shorter implementation. >>>> >>>> For example : "<%" and "<%=" or "{%" and "{{" ? >>>> >>>> What do you think, guys ? >>> >>> Honestly this is the wrong question. PHP as a template language has much >>> larger problems than this. The difference between >> 7 characters and entirely cosmetic. The difference relative to >> echo htmlentities(..., ENT_QUOTES | ENT_HTML5, 'UTF-8'); ?> however is >>> 56 characters, security, and encoding bugs. >>> >>> Proper handling of output escaping is standard in modern template >>> languages. The question shouldn't be "should we add a cooler short >>> tag?". The question should be "What needs to be done to make PHP an >>> industry leader in template languages again?". >>> >>> My two cents, >>> >>> John Crenshaw >>> Priacta, Inc. >>> >>> -- >>> PHP Internals - PHP Runtime Development Mailing List >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >> >> >> >> -- >> Tom Boutell >> P'unk Avenue >> 215 755 1330 >> punkave.com >> window.punkave.com > > >