Wednesday, September 03, 2008

php is the template engine


I wrote about dom parser on cake-php google group ,
http://groups.google.com/group/cake-php/browse_thread/thread/f8a043585b2021c8
I think php + simple html dom is briliant in working with html pages as templates and separate the logic from the view (or designer code)

In views i can use smarty or fasttemplate or any other template
language but i'm not quite atracted about any of them
http://www.qadram.com/vcl4php/docwiki/index.php/Component_Writer%27s_...
I wonder what if i use no template engine at all and keep the html
separated and clean
and use an simple dom parser for html "templates" or files

http://simplehtmldom.sourceforge.net/ and modify the html dom
structure

or with jquery phpQuery - jQuery port to PHP
http://code.google.com/p/phpquery/

No comments: