While &quot;easier to read&quot; is probably a personal preference, it can be a real pain to track down extra/missing single quotes. <br><br><div class="gmail_quote">On Sun, Oct 11, 2009 at 7:46 PM, Shai Gluskin <span dir="ltr">&lt;<a href="mailto:shai@content2zero.com">shai@content2zero.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Gang,<br><br>Every tpl.php file that I&#39;ve seen in any theme is written in html with php interspersed for putting in variables. I think part of the reasoning for this approach is that it would be easier for non-geek designers to read such pages.<br>

<br>I want to challenge that. I think all those php open-close and all the &quot;print&quot; commands makes for very hard-to-read code. Tonight, as an experiment, I rewrote the node.tpl.php file from Zen from html to php. I think it is a lot easier to read. And it&#39;s sure a lot easier to comment.<br>

<br>I pasted my rewritten version and the original from Zen onto a pastebin:<br><a href="http://pastebin.ca/1614186" target="_blank">http://pastebin.ca/1614186</a><br><br>Anyway, I&#39;d be curious what other&#39;s opinions are on this.<br>

<br>best,<br><font color="#888888"><br>Shai<br>
</font><br>_______________________________________________<br>
consulting mailing list<br>
<a href="mailto:consulting@drupal.org">consulting@drupal.org</a><br>
<a href="http://lists.drupal.org/mailman/listinfo/consulting" target="_blank">http://lists.drupal.org/mailman/listinfo/consulting</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Email is not a secure form of communication!<br><br>Drupal Consultant<br><a href="http://www.hazelconsulting.com/">http://www.hazelconsulting.com/</a><br>253.686.0296<br>
<a href="mailto:dave@hazelconsulting.com">dave@hazelconsulting.com</a><br>skype: hazelconsulting<br>gtalk:kananii<br><a href="http://www.facebook.com/davidhazel">http://www.facebook.com/davidhazel</a><br>ICQ: 366587185<br>