I cannot agree with this :))) I have a multi-document, multi-dom templating engine with almost no performance loss. It has some cakephp dedicated solutions, but generally it's completly standaone.
It will be published soon, when final API will be ready. It based on phpQuery, which i'm also author of. I will happly share my work (MIT of course) and for this day i have a full, cakephp based website running on it, stable :) On Sep 4, 7:27 pm, mark_story <[EMAIL PROTECTED]> wrote: > Having a template parser for PHP is quite silly. PHP was originally > concieved as a templating language. Using a dom parser is going to be > measurably slower than raw PHP templates. The primary reasons for > templating sytax in other frameworks is because languages like python > and ruby don't support html / code blocks to be mixed. There is no > need for this in PHP. > > -Mark > > On Sep 4, 8:20 am, the_woodsman <[EMAIL PROTECTED]> wrote: > > > I can see the time and place for something like PHPQuery, but > > seriously: > > > // Create DOM from string > > $html = str_get_html('<div id="hello">Hello</div><div > > id="world">World</div>'); > > > What possible benefits are there for declaring entire pages like this? > > You'll have escaping issues, you'll always have a harder job > > integrating other peoples designs, or allowing less technical people > > to make minor changes. > > > I implore you, don't do it! The very idea gives me nightmares :) > > > On Sep 3, 12:18 pm, Donkeybob <[EMAIL PROTECTED]> wrote: > > > > cake has a built-in template system . . . .why change it? Seems like > > > more work if you're using the framework anyways. > > > > On Sep 3, 4:54 am, mariuz <[EMAIL PROTECTED]> wrote: > > > > > In views i can use smarty or fasttemplate or any other template > > > > language but i'm not quite atracted about any of > > > > themhttp://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/andmodifythehtml dom > > > > structure > > > > > // Create DOM from string > > > > $html = str_get_html('<div id="hello">Hello</div><div > > > > id="world">World</div>'); > > > > > $html->find('div', 1)->class = 'bar'; > > > > > $html->find('div[id=hello]', 0)->innertext = 'foo'; > > > > > echo $html; // Output: <div id="hello">foo</div><div id="world" > > > > class="bar">World</div> > > > > > or with jquery phpQuery - jQuery port to > > > > PHPhttp://code.google.com/p/phpquery/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---