Re: [PHP Template] Re: if statements
[email protected] (Andrei Zmievski)
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
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. *