Agreed. I prefer the way it's usually done.<br clear="all">-----<br>Cameron Eagans<br>Owner, Black Storms Studios, LLC<br><a href="http://www.blackstormsstudios.com">http://www.blackstormsstudios.com</a><br>
<br><br><div class="gmail_quote">On Sun, Oct 11, 2009 at 9:02 PM, David Hazel <span dir="ltr"><<a href="mailto:dave@hazelconsulting.com">dave@hazelconsulting.com</a>></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;">
While "easier to read" is probably a personal preference, it can be a real pain to track down extra/missing single quotes. <br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Oct 11, 2009 at 7:46 PM, Shai Gluskin <span dir="ltr"><<a href="mailto:shai@content2zero.com" target="_blank">shai@content2zero.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Gang,<br><br>Every tpl.php file that I'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 "print" 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'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'd be curious what other's opinions are on this.<br>
<br>best,<br><font color="#888888"><br>Shai<br>
</font><br></div></div>_______________________________________________<br>
consulting mailing list<br>
<a href="mailto:consulting@drupal.org" target="_blank">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/" target="_blank">http://www.hazelconsulting.com/</a><br>
253.686.0296<br>
<a href="mailto:dave@hazelconsulting.com" target="_blank">dave@hazelconsulting.com</a><br>skype: hazelconsulting<br>gtalk:kananii<br><a href="http://www.facebook.com/davidhazel" target="_blank">http://www.facebook.com/davidhazel</a><br>
ICQ: 366587185<br>
<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>