Re: Handling unparsed placeholders
| From: | Andrei Zmievski | Date: | Tue, 15 Feb 2000 16:56:15 +0000 |
| Subject: | Re: Handling unparsed placeholders | ||
| References: | 1 2 3 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-21@lists.php.net to get a copy of this message | ||
On Tue, 15 Feb 2000, Tobias Ratschiller wrote:
> It defines how to handle placeholders which aren't used in your script.
> $unknowns can be one of "keep", "comment", or "remove, the default
> value
> being "remove". If set to "keep", placeholders are left untouched in the
> template. If set to "comment", unresolved placeholders are transformed into
> HTML comments. If set to remove, they're silently removed from the template.
This could easily be added to specification. Something like
tpl_unknown_handling().
So, what do you guys think about the current draft? Is it totally bogus
or is it workable? I know it's only one way to implement a template
engine, and J-F's idea sounds interesting too.
-Andrei
Linux is like living in a teepee.
No Windows, no Gates, Apache in house.
- Usenet signature