Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16931 invoked from network); 6 Apr 2012 21:19:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Apr 2012 21:19:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=tom@punkave.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tom@punkave.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain punkave.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: tom@punkave.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:35634] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/E9-57786-9DD5F7F4 for ; Fri, 06 Apr 2012 17:19:21 -0400 Received: by yenl5 with SMTP id l5so1577860yen.29 for ; Fri, 06 Apr 2012 14:19:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=SFoWIatSzk93zGathcGHSRv3saZb4dNABBtvSO6nH3k=; b=X6aQhQnXBz2P9wO2NWn5Y2UfQy4DNIFOYQLMF5xnhLXUq2kKiDafpyRs32zXF09KpL foDjuxfbsz83sWyczAxkN9qdO5l7cPppGZhRTitVlMpgL8iTyXiDSQnSBbR25pJmK6Np zVYEnyzQn3eCioGXnSSoycVpN86/JxKNF5iiJtFCJ/oZJgWfvPtb2/2fMklagGTt3i3m Sl9wSQRJ1lZ2rBMjiE1YEP2Z4L/meKqoHuOlxV+iQzgx2bL6evcmlvhxajhWRgdfCeDe emEr3qdAXJeIBY3iwEjz5iYXppoDetm3X2YyO/EA8hmt0YTZlziTwcE/T05TTd7rmUjE 83Kw== MIME-Version: 1.0 Received: by 10.236.156.130 with SMTP id m2mr8117224yhk.102.1333747158190; Fri, 06 Apr 2012 14:19:18 -0700 (PDT) Received: by 10.100.35.16 with HTTP; Fri, 6 Apr 2012 14:19:18 -0700 (PDT) In-Reply-To: References: <3C.7D.30259.C0B5E7F4@pb1.pair.com> Date: Fri, 6 Apr 2012 17:19:18 -0400 Message-ID: To: John Crenshaw Cc: "sunseb@live.com" , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkuEhWMhbeOSIQTSKEpnRf4Q87nNRbcG0ujkA/PUpUS/qTVcgzsDBZpN2DIeB5NyyUixnIJ Subject: Re: [PHP-DEV] PHP as a template language From: tom@punkave.com (Tom Boutell) 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 wr= ote: >> -----Original Message----- >> From: S=E9batien 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 ele= gant and a shorter implementation. >> >> For example : "<%" and "<%=3D" 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 however is 56 characte= rs, security, and encoding bugs. > > Proper handling of output escaping is standard in modern template languag= es. The question shouldn't be "should we add a cooler short tag?". The ques= tion should be "What needs to be done to make PHP an industry leader in tem= plate 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 > --=20 Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com