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:
And except by *_Parser and *_Defs, all files from the Dom directory
that's it. let me know what do you think. :)
PHPTAL mailing list