RE: [PHP] (OT) Templating laziness

From: Date: Thu, 23 Nov 2000 11:26:18 +0000
Subject: RE: [PHP] (OT) Templating laziness
Groups: php.general 
Request: Send a blank email to php-general+get-26819@lists.php.net to get a copy of this message
excuse my following message for it's first sentence. What absolute rubbish. The primary reason for templateing is seperation of functionality from design for instance, we wouldn't have been able to generate 3 new corporate e-commerce sites in 2 days if we had to wade through loads of files with php AND html in. The killer is the breaking down of web page html into design building blocks which may be global across a whole site or a section etc, and those bits that are specific to individual pages. Using templates we can quicly make global/semi-global or local changes. Indeed, the design department can make these changes WITHOUT breaking the functionality and WITHOUT locking the files for edit. If you can come up with a method for doing this that doesn't look like fast tempaltes I'd like to see it (don't forget about table rows definied as a single row etc) Tim Parkin -----Original Message----- From: Michael Kimsal [mailto:michael@tapinternet.com] Sent: Wednesday, November 22, 2000 23:55 To: Matt McClanahan Cc: Geoff Caplan; PHP General Subject: [PHP] (OT) Templating laziness Oooohhhhh! Flamebait!!! :) I don't think it's laziness, actually. I think people are looking to 'structure' things, and that's generally good. I do think that often times people overstructure things, though, and that's generally bad. I'm not knocking fasttemplates or other systems - we've used them ourselves. But as we worked more and more with it and other variations, it began to seem like more work than it was worth, considering (1) what we needed to do and (2) the alternative. Matt McClanahan wrote: > On Wed, 22 Nov 2000, Geoff Caplan wrote: > > > Michael > > > > > Any reason why you don't just do <?=$data;?> instead of {placeholder} in > > > the templates? .......... The PHP engine *is* a 'fast and light template > > substitution parser'. > > > Yes, extra templating layers buy you things like looping result sets, > > etc., > > > but you can easily write a loop or function to do the same thing. Only > > > real benefit I see of using a full 'template system' is cross-platform > > > compatibility. > > > > > > > This is a very good point. I hadn't really thought it through. Many thanks! > > From this point of view, it is hard to account for the popularity of PHP > > template parsers.... > > My flamebait opinion: Laziness. :) > > Matt > -- ========================== Michael Kimsal PHP meta search http://www.phphelpdesk.com/search/ PHP Training courses http://www.tapinternet.com/php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#26819) next »