Re: [PHP Template] Re: if statements
| From: | Andrei Zmievski | Date: | Tue, 15 Feb 2000 22:18:47 +0000 |
| Subject: | Re: [PHP Template] Re: if statements | ||
| References: | 1 2 3 4 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-60@lists.php.net to get a copy of this message | ||
On Tue, 15 Feb 2000, Tobias Ratschiller wrote:
> That's true again. Okay, let me rephrase that: some compromise is needed -
> either you have application logic in the template, or layout in the code.
> So, I'm for if-constructs, and maybe other constructs, in the template as
> long as they don't slow down parsing considerably.
Well, if we decide to be truly speed-paranoid we can always have a
switch that sets the level of things parsed in the template. :)
Example: parse_level
0: parse only variables
1: parse variables and sections
2: parse variables, sections, and if statements
etc.
-Andrei
* The great thing about standards is that there are so many to choose from. *