Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision 0.35

From: Date: Fri, 25 Feb 2000 14:44:46 +0000
Subject: Re: [PHP Template] Re: [PHP3] PHP Template Engine spec revision 0.35
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.template 
Request: Send a blank email to php-template+get-227@lists.php.net to get a copy of this message
Maybe there can be a tag in the template that allows you to override any default setting in the .ini file. That would make things pretty flexible. {{set cache_templates on}} Kristian Köhntopp wrote: > > Andrei Zmievski wrote: > > I guess I just don't see a big benefit to each template describing its > > own delimiters. > > It does not. There is a set of standard delimiters and if the > template does not define a different set of delimiters, these > are used. > > If a template uses a different set of delimiters, there is little > use to define there delimiters outside of the template, for example > in an ini-file, because if you copy that template to a different > installation, you will > > a) almost surely have template which use standard delimiters in > that installation, so you have either to convert the newly > imported template or the old templates > b) almost surely forget to adapt these settings so that the > imported template will break. > > If all template use standard delimiters by default and these > templates that do not (for a reason) use these standard declare > so at the top, templates can easily be switched between installations > with no adaption problems and without bothering. The format is self- > contained and self-describing. > > Kristian >

« previous php.template (#227) next »