Smarty TAL Compiler

From: Date: Mon, 05 Aug 2002 10:19:11 +0000
Subject: Smarty TAL Compiler
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5585@lists.php.net to get a copy of this message
Hello, I've posted to the list before about this... http://marc.theaimsgroup.com/?l=smarty-general&m=102098471132727&w=2 ...but to recap, my dream is to create a smarty compiler that recognises TAL / TALES. My first attempt used the php expat libraries for parsing the template. The problem with this, I found, was that the template had to be strict XHTML, so it wasn't very useful for use with Frontpage, Dreamweaver 4 etc. I have now found that the mshtml component on Windows allows you to access the DOM of a none valid html pages. I've written a short Python script to harness this and it works really well. I plan to access it through soap, and have it convert the tal expressions into smarty expressions, and use it as a smarty prefilter. But the problem of course is that it relies on having a Windows machine. I wonder is there a similar php extension / module for accessing the mozilla / gecko dom parser. Or is there another html parser that provides a dom interface to html docs? Any information would be useful. -RichardW. __________________________________________________ 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

« previous php.smarty.general (#5585) next »