Re: Handling unparsed placeholders

[email protected] (Andrei Zmievski)
Newsgroups php.template
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.