<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: pQuery - Messing with the DOM from PHP</title>
	<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/</link>
	<description>Mr Quinn, one word for your fans? "Ehm, astronaut."</description>
	<pubDate>Wed, 07 Jan 2009 04:53:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: jjshell</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-2347</link>
		<dc:creator>jjshell</dc:creator>
		<pubDate>Sun, 04 Jan 2009 13:12:54 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-2347</guid>
		<description>Hi,

I am very interested in using pQuery. Under which license is it released? Do you plan to develop/maintain it in the future, or was it a small side-project?

Regards,

-jj.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am very interested in using pQuery. Under which license is it released? Do you plan to develop/maintain it in the future, or was it a small side-project?</p>
<p>Regards,</p>
<p>-jj.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Spence</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-2328</link>
		<dc:creator>Jim Spence</dc:creator>
		<pubDate>Fri, 19 Dec 2008 04:10:34 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-2328</guid>
		<description>&lt;strong&gt;Jim Spence...&lt;/strong&gt;

I am not sure that I can completely understand your comments.  Would you be so kind as to expand on your reasoning a little more before I comment....</description>
		<content:encoded><![CDATA[<p><strong>Jim Spence&#8230;</strong></p>
<p>I am not sure that I can completely understand your comments.  Would you be so kind as to expand on your reasoning a little more before I comment&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Godar</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-640</link>
		<dc:creator>Godar</dc:creator>
		<pubDate>Fri, 03 Oct 2008 06:57:49 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-640</guid>
		<description>We have put together a PHP DOM Template engine that seperates design from development and works well. It uses three new attributes which are removed at render time.

We have tested is speed against a number of other PHP Template engines and while it is slightly slower than some of the pre-compiled template engines this one fairs well for a direct parsing renderer.

The best thing is if you want to re-template a site and not redo the code it is all quite possible if you have the site planned out well.</description>
		<content:encoded><![CDATA[<p>We have put together a PHP DOM Template engine that seperates design from development and works well. It uses three new attributes which are removed at render time.</p>
<p>We have tested is speed against a number of other PHP Template engines and while it is slightly slower than some of the pre-compiled template engines this one fairs well for a direct parsing renderer.</p>
<p>The best thing is if you want to re-template a site and not redo the code it is all quite possible if you have the site planned out well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umkus</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-637</link>
		<dc:creator>Umkus</dc:creator>
		<pubDate>Sat, 27 Sep 2008 12:13:11 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-637</guid>
		<description>Hey there! Nice implementation. As the matter of fact I was searching for those kinds of TE for my framework. But two things always tend to stop me:
1) DOM-manipulating is quite hungry for the resources
2) If you get some templates changed (in a web-designing studiowhere I work I get them alot!) you are forced to change your php-code as well. And that's really bad.
Chears.</description>
		<content:encoded><![CDATA[<p>Hey there! Nice implementation. As the matter of fact I was searching for those kinds of TE for my framework. But two things always tend to stop me:<br />
1) DOM-manipulating is quite hungry for the resources<br />
2) If you get some templates changed (in a web-designing studiowhere I work I get them alot!) you are forced to change your php-code as well. And that&#8217;s really bad.<br />
Chears.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Holmström</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-635</link>
		<dc:creator>Fredrik Holmström</dc:creator>
		<pubDate>Fri, 26 Sep 2008 17:33:00 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-635</guid>
		<description>Koen yes, as it is now the "abstraction" of using a php:id or py:id disconnects the all together so that you can change the html structure in any way you want aslong as you keep the php/py:id structure the same.

The current implementation of option 1) is in python and im going to tidy it up and put a post up about it.</description>
		<content:encoded><![CDATA[<p>Koen yes, as it is now the &#8220;abstraction&#8221; of using a php:id or py:id disconnects the all together so that you can change the html structure in any way you want aslong as you keep the php/py:id structure the same.</p>
<p>The current implementation of option 1) is in python and im going to tidy it up and put a post up about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koen</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-634</link>
		<dc:creator>Koen</dc:creator>
		<pubDate>Fri, 26 Sep 2008 17:28:42 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-634</guid>
		<description>I think number 1) is good step in the direction I would favor. The question I still have at this point is this: suppose you iterate through a list using list items (ul, li). Would the designer (who is instructed about php:id) be able to change the &#60;li php:id="posts"&#62; into a similare div structure?</description>
		<content:encoded><![CDATA[<p>I think number 1) is good step in the direction I would favor. The question I still have at this point is this: suppose you iterate through a list using list items (ul, li). Would the designer (who is instructed about php:id) be able to change the &lt;li php:id=&#8221;posts&#8221;&gt; into a similare div structure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fredrik Holmström</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-633</link>
		<dc:creator>Fredrik Holmström</dc:creator>
		<pubDate>Fri, 26 Sep 2008 11:55:39 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-633</guid>
		<description>@ All people that noted on the fact that it "moves html into php": Yes in this version you're right, I have two other prototypes at my harddrive (one written in python and one in php) that solves this issue in two different ways:

1) Adds a separate php:id or py:id that lets you access those elements from within python/php
2) Allows you to select elements based on css rules, such as: $s("#posts li").each(function($element, $i) { /* do something to each li here */ });

All in all I like 1) better since it disconnects the php/python from the css/html completely, sure you need to add php:id="title" for say the h2-tag on a post or something, but it also means you dont have to clutter your tags with dom-id's that are only used in php/python or unnecessary css-classes so you can disconnect the php/python from the html structure.</description>
		<content:encoded><![CDATA[<p>@ All people that noted on the fact that it &#8220;moves html into php&#8221;: Yes in this version you&#8217;re right, I have two other prototypes at my harddrive (one written in python and one in php) that solves this issue in two different ways:</p>
<p>1) Adds a separate php:id or py:id that lets you access those elements from within python/php<br />
2) Allows you to select elements based on css rules, such as: $s(&#8221;#posts li&#8221;).each(function($element, $i) { /* do something to each li here */ });</p>
<p>All in all I like 1) better since it disconnects the php/python from the css/html completely, sure you need to add php:id=&#8221;title&#8221; for say the h2-tag on a post or something, but it also means you dont have to clutter your tags with dom-id&#8217;s that are only used in php/python or unnecessary css-classes so you can disconnect the php/python from the html structure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SitePoint PHP Blog: DOM vs. Template : Dragonfly Networks</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-632</link>
		<dc:creator>SitePoint PHP Blog: DOM vs. Template : Dragonfly Networks</dc:creator>
		<pubDate>Fri, 26 Sep 2008 10:28:05 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-632</guid>
		<description>[...] this new post to the SitePoint PHP Blog there&#8217;s a look at using a small templating engine recently released by Fredrik Holmstrom that takes a different tack on working with template files - [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] this new post to the SitePoint PHP Blog there&#8217;s a look at using a small templating engine recently released by Fredrik Holmstrom that takes a different tack on working with template files - [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaik</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-631</link>
		<dc:creator>Jaik</dc:creator>
		<pubDate>Fri, 26 Sep 2008 08:38:13 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-631</guid>
		<description>I think Koen has hit the nail on the head here. In trying to remove PHP code from your HTML, you've gone too far the other way and started putting HTML into your PHP.

If the template changes significantly in the future then you'll end up doing just as much work as you would if there was no templating system at all.

The code looks quite elegantly done from the brief look I've just had and it's quite compact considering the functionality it seems to have, I just think it's missing the target somewhat in its current guise.</description>
		<content:encoded><![CDATA[<p>I think Koen has hit the nail on the head here. In trying to remove PHP code from your HTML, you&#8217;ve gone too far the other way and started putting HTML into your PHP.</p>
<p>If the template changes significantly in the future then you&#8217;ll end up doing just as much work as you would if there was no templating system at all.</p>
<p>The code looks quite elegantly done from the brief look I&#8217;ve just had and it&#8217;s quite compact considering the functionality it seems to have, I just think it&#8217;s missing the target somewhat in its current guise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Koen</title>
		<link>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-629</link>
		<dc:creator>Koen</dc:creator>
		<pubDate>Thu, 25 Sep 2008 18:38:41 +0000</pubDate>
		<guid>http://loveandtheft.org/2008/09/17/pquery-messing-with-the-dom-from-php/#comment-629</guid>
		<description>There's indeed no PHP in the template, however there IS HTML in the PHP code. If the problem is with PHP in templates becoming unwieldly, this is the other way round: the reference to HTML elements will become unwieldly in the PHP code.
What's more, if you look at the template (eg from a designer perspective) it's not at all clear anymore what you can change. Rule number one probably is to keep of the classes. But can you delete an element with a certain class? Will you know what you just have deleted that depended upon that class?</description>
		<content:encoded><![CDATA[<p>There&#8217;s indeed no PHP in the template, however there IS HTML in the PHP code. If the problem is with PHP in templates becoming unwieldly, this is the other way round: the reference to HTML elements will become unwieldly in the PHP code.<br />
What&#8217;s more, if you look at the template (eg from a designer perspective) it&#8217;s not at all clear anymore what you can change. Rule number one probably is to keep of the classes. But can you delete an element with a certain class? Will you know what you just have deleted that depended upon that class?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
