Re: compiling into native php?
| From: | Richard Wall | Date: | Tue, 05 Feb 2002 15:23:25 +0000 |
| Subject: | Re: compiling into native php? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2644@lists.php.net to get a copy of this message | ||
--- Ulf Wendel <ulf.wendel@phpdoc.de> wrote: >
> If any ouf you has some input for me how to do this,
> please feel free to
> send me links and hints. I'm currently working on
> this issue.
There's a template system in the Enhydra project
called 'XMLC'...
http://xmlc.enhydra.org/project/aboutProject/index.html
...which - from what I understand - compiles html
templates into Java classes. Through the methods in
these you can access and change any HTML element who
has an 'id' attribute.
This sounds a bit like what you can do with MS Visual
Studio.Net etc, but I'm not sure which came first.
I wonder whether you could write a php wrapper for the
XMLC compiler command and access the resulting classes
using the php java extension. Or better still write a
php version of the compiler. I might have a go. The
only thing I think is missing from this system is the
ability to include logic / function calls into the
template. For this I think that the tal system of Zope
is very well thought out and I'm currently trying to
write a tal compiler for smarty.
--
Richard Wall
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com