Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59390 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59823 invoked from network); 7 Apr 2012 05:59:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Apr 2012 05:59:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=charlie@charliesomerville.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=charlie@charliesomerville.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain charliesomerville.com from 209.85.160.42 cause and error) X-PHP-List-Original-Sender: charlie@charliesomerville.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:38127] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/12-57786-6A7DF7F4 for ; Sat, 07 Apr 2012 01:59:03 -0400 Received: by pbcun1 with SMTP id un1so3584152pbc.29 for ; Fri, 06 Apr 2012 22:58:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type:x-gm-message-state; bh=1hRfSPP0hQiZg1xuR7K4MJoNfsJ6AO9sveRs3B1/HUs=; b=OHmA1x5SQdIXnI9UdzwvaLE17Da26bvPDUDJWoJbvIMJQMA4T1PyuOBWNqQVEn1VSV kGjv37haCv8IP2nOZZcS+ikS8unJ0Fg2KTd++l8cZx4NjWdo31HNlj9YZPmhQaP3OH8H jhsQsuzthLYBaZaULmhnGl+OYaJ1UYtXcVN3fLDSUfO5m1TJSUJOpd9kRpkIW/p8TuuP bEsXnpF5RWBwIARjUYkMRq0MZnqc4N/AQTl4cStJtliwOY3aPgko+FCB2D0zaGLwTpn6 f+c2uBnV1Ka6Oo3wJiScJNssoONOTu/kdtUNc6V+FgWi12r8hTD6L2AQkE7nKA0wcSpT u+YA== Received: by 10.68.229.167 with SMTP id sr7mr1260939pbc.157.1333778339400; Fri, 06 Apr 2012 22:58:59 -0700 (PDT) Received: from charlie-mac.local (124-170-26-205.dyn.iinet.net.au. [124.170.26.205]) by mx.google.com with ESMTPS id o2sm8295958pbq.61.2012.04.06.22.58.56 (version=SSLv3 cipher=OTHER); Fri, 06 Apr 2012 22:58:58 -0700 (PDT) Date: Sat, 7 Apr 2012 15:58:53 +1000 To: sunseb@live.com Cc: internals@lists.php.net Message-ID: In-Reply-To: <63.B1.57786.258CF7F4@pb1.pair.com> References: <3C.7D.30259.C0B5E7F4@pb1.pair.com> <63.B1.57786.258CF7F4@pb1.pair.com> X-Mailer: sparrow 1.4.2 (build 959.4) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4f7fd79d_74b0dc51_6dd6" X-Gm-Message-State: ALoCoQmcK6Ucx9GKrmmOwC5NEXNi8hbIdnGfPwTT6Nv59o7vV43mlwrLnBZRmIHVnQlJB2HUNWio Subject: Re: [PHP-DEV] PHP as a template language From: charlie@charliesomerville.com (Charlie Somerville) --4f7fd79d_74b0dc51_6dd6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline April fools was 6 days ago ;) =20 On Saturday, 7 April 2012 at 2:53 PM, S=C3=A9batien Durand wrote: > I personally like mixing PHP/HTML. It's not bad. It allows us to work w= ith > simplicity. =46or example : http://tinyurl.com/cyrlchw > =20 > Tom Boutell wrote: > =20 > > To tell the truth I'd be more excited by a proposal to kill <=3Fphp > > 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 =22dribs and drabs of PHP sprinkled in HTML= =22 > > completely behind them. > > =20 > > On =46ri, 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 implementatio= ns > > > in PHP, like Twig=3F > > > =20 > > > On =46ri, Apr 6, 2012 at 3:05 PM, John Crenshaw > > > wrote: > > > > > -----Original Message----- > > > > > =46rom: S=C3=A9batien Durand =5Bmailto:sunseb=40live.com=5D > > > > > Sent: Thursday, April 05, 2012 10:55 PM > > > > > To: internals=40lists.php.net (mailto:internals=40lists.php.net= ) > > > > > Subject: =5BPHP-DEV=5D PHP as a template language > > > > > =20 > > > > > IMHO, PHP is a great template language. This is what makes it s= o simple > > > > > and powerful, compared to other web languages. > > > > > =20 > > > > > So far, we have =22<=3Fphp=22, =22<=3F=3D=22 and various legacy= syntaxes like =22<=3F=22. > > > > > =20 > > > > > A suggestion : deprecate these old tags and replace them with a= more > > > > > elegant and a shorter implementation. > > > > > =20 > > > > > =46or example : =22<%=22 and =22<%=3D=22 or =22=7B%=22 and =22=7B= =7B=22 =3F > > > > > =20 > > > > > What do you think, guys =3F > > > > =20 > > > > Honestly this is the wrong question. PHP as a template language h= as much > > > > larger problems than this. The difference between <=3Fphp echo an= d <=3F=3D is > > > > 7 characters and entirely cosmetic. The difference relative to <=3F= php > > > > echo htmlentities(..., ENT=5FQUOTES =7C ENT=5FHTML5, 'UT=46-8'); = =3F> however is > > > > 56 characters, security, and encoding bugs. > > > > =20 > > > > Proper handling of output escaping is standard in modern template= > > > > languages. The question shouldn't be =22should we add a cooler sh= ort > > > > tag=3F=22. The question should be =22What needs to be done to mak= e PHP an > > > > industry leader in template languages again=3F=22. > > > > =20 > > > > My two cents, > > > > =20 > > > > John Crenshaw > > > > Priacta, Inc. > > > > =20 > > > > -- > > > > PHP Internals - PHP Runtime Development Mailing List > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > -- > > > Tom Boutell > > > P'unk Avenue > > > 215 755 1330 > > > punkave.com (http://punkave.com) > > > window.punkave.com (http://window.punkave.com) > > > =20 > > =20 > > =20 > =20 > =20 > -- =20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > =20 > =20 --4f7fd79d_74b0dc51_6dd6--