Re: RFC: Removing PHP tags

From: Date: Sun, 01 Apr 2012 02:31:20 +0000
Subject: Re: RFC: Removing PHP tags
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-59284@lists.php.net to get a copy of this message
What many people fail to see is that PHP is it's own templating language. It might be ugly for people used to other template languages, but it works perfectly and right out of the box. On Sat, Mar 31, 2012 at 11:24 PM, Klaus Silveira <klaussilveira@php.net>wrote: > Removing PHP's native feature of being able to be easily embedded inside > HTML and other markup languages is absolutely retrograde. Of of the biggest > points in favor of PHP is that i'm able to easily do this: > > <ul> > <?php foreach ($stuff as $item): ?> > <li><?php echo $item ?></li> > <?php endforeach; ?> > </ul> > > Or this: > > <?xml version="1.0" ?> > <store> > <?php foreach ($stuff as $item): ?> > <product><?php echo $item ?></product> > <?php endforeach; ?> > </store> > > Without having to implement any slow-as-hell template language. It works > right out of the box. Using MVC as an argument for tag removal is a clear > disrespect to the language itself. >

« previous php.internals (#59284) next »