Re: [PHP Template] <..> or {{..}} - vote?
[email protected] (Andrei Zmievski) Tue, 22 Feb 2000 11:20:04 -0600
| Newsgroups | php.template |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 22 Feb 2000, Cyrix Haldir wrote:
> I personally think that < >, or eventually <!-- -->, are the best
> delimiters: we should remeber that templates should make life simpler
> for the folk, who probably didn't ever wrote a "{" :)
> I feel templates should be as similar to html as we can, and keep them
> as simple as it's possible. After all, < > shouldn't cause so much
> parsing overhead, and we can extend the cache stuff to cache pre-parsed
> page.
Caching is already planned. When the template file is opened, it is run
through a compiler that creates in-memory intermediate representation.
This representation is what's cached.
As far as < and > I'll see how hard it would be to add to scanner
without compromising performance.
-Andrei
* Linus's Law: ``Given enough eyeballs, all bugs are shallow.'' *