Re: Modular: Fusebox & Classes/OOP

From: Date: Wed, 22 Nov 2000 23:54:59 +0000
Subject: Re: Modular: Fusebox & Classes/OOP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-26762@lists.php.net to get a copy of this message
On Wed, 22 Nov 2000, Geoff Caplan wrote: > Michael > > > > So now we include() our screen templates, which have been set up with > the > > > usual {placeholders} for the dynamic_data, and the last step is to call > the > > > parser, substitute in the variables, and print() the results. > > > > > > > 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

« previous php.general (#26762) next »