Re: [PHP Template] <..> or {{..}} - vote?
| From: | Andrei Zmievski | Date: | Tue, 22 Feb 2000 17:20:04 +0000 |
| Subject: | Re: [PHP Template] <..> or {{..}} - vote? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.template |
| Request: | Send a blank email to php-template+get-200@lists.php.net to get a copy of this message | ||
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.'' *