Re: Template engines

From: Date: Tue, 09 Nov 2010 06:31:39 +0000
Subject: Re: Template engines
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-309395@lists.php.net to get a copy of this message
On 9 November 2010 06:20, Paul M Foster <paulf@quillandmouse.com> wrote: > On Mon, Nov 08, 2010 at 02:41:12PM -0700, Hansen, Mike wrote: > >> I really like the idea of using a templating engine. Which one do you >> use? Why? For those that don't use templating engines, why don't you >> use them? >> > > Here's why I don't use a templating engine. > > First, You're taking an embedded language and writing a templating > engine in it. Seriously? > > Second, you're painting a single page, maybe 10-15K worth of > information, and you're dragging 100K of code around just to paint a > single page. Seriously? > > Third, you're creating a page on the fly, thrashing the server's CPU in > order to generate a page which could be built statically, or at least > with minimally embedded PHP. Seriously? > You assume that the OP will either make static pages (yet posts on the PHP mailing list) or makes pages that aren't very dynamic in any sense. Seriously? -- <hype> WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 </hype>

« previous php.general (#309395) next »