Awesome. Let us make this the foundation for a PHPTAL 2. I will contribute loads. Nice work!


Am 12.01.2008 um 00:30 schrieb Rodrigo Moraes:

Today I finally created a demo of PHPTAL working with a PHP DOM
parser, and sent it to a temporary GoogleCode repository. Here's the

It is a very rough demo and I can only assure that the "First example"
from the manual will work. :) My purpose was to see if there is still
interest to discuss this idea. In a quick and dirty benchmark parsing
the example template 1000 times, the DOM parser was 73% faster then
the current parser. Well, speed is not the only thing to consider, but
I thought you'd be interested to know this.

I started this from scratch today taking PHPTAL 1.1.9 as base (in my
previous try I changed it too much to be useful to the community).
There's a lot to be done, but I wanted to start with something and
hear your thoughts. Compared to 1.1.9, only these files were changed
for the demo:

- PHPTAL_Dom_Parser
- PHPTAL_Dom_Defs
- PHPTAL_Php_CodeGenerator
- PHPTAL_Php_Node
- PHPTAL_Php_Attribute

And except by *_Parser and *_Defs, all files from the Dom directory
were removed.

that's it. let me know what do you think. :)

-- rodrigo

PHPTAL mailing list

PHPTAL mailing list

Reply via email to