Shai,<br><br>When a designer is not involved I almost always use php only versions of tpl files, but I do find designers are much more comfortable with the mixed technique.<br><br>As to Matt's question about Dreamweaver, the assumption is correct, you cannot view the php only versions in "design view" where you can with the mixed method, however, given there is no css available to the tpl files in design view, I'm not sure designers would ever use design view, so it might not be an issue. <br>
<br>What I do find a lot more readable in the mixed method is instead of all those <?php print $terms ?> statements is the simple <?=$terms ?> but I guess there's some good reason that method isn't used. <br>
<br>Sam<br><br><div class="gmail_quote">On Mon, Oct 12, 2009 at 8:59 AM, Shai Gluskin <span dir="ltr"><<a href="mailto:shai@content2zero.com">shai@content2zero.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;">
Gang,<br>
<br>
Matt, very cool on the user testing.<br>
<br>
Ultimately, it does come down to personal preference. Newbies wouldn't<br>
know there is something different. If this is enough if an itch for me<br>
I could put out a Zen clone with the tpl files re-written.<br>
<br>
I want to research Michelle's suggestion that all PHP degrades<br>
performance. I'm sceptacle of that.<br>
<br>
Re Greg's point about the View-source less structured/ harder to read.<br>
First off, the output when doing it HTML style is far from perfect.<br>
And I think in a Firebug world, it's kind of moot, cause Firebug reads<br>
the DOM of the doc and puts the HTML in perfect order, so the raw<br>
View-source isn't that important.<br>
<br>
An interesting addition to Matt's user test would be to ask the user<br>
to comment out a portion of the code, which is a really helpful thing<br>
to do when experimenting. Very easy in PHP; a real pain in a mixed<br>
PHP/HTML environment.<br>
<br>
The Zen tpl files have a bunch of helpful documentation at the top. In<br>
a PHP environment, the help could be interspersed throughout the file,<br>
close to relevant code. It would also be easy to add sample code<br>
snippets that are commented out by default. Zen does that quite a bit<br>
in template.php and in CSS files, but that is notably missing from the<br>
tpl files.<br>
<font color="#888888"><br>
Shai<br>
</font><div><div></div><div class="h5"><br>
On Monday, October 12, 2009, Nancy Wichmann <<a href="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</a>> wrote:<br>
><br>
><br>
><br>
><br>
><br>
> Shai,<br>
> I absolutely agree with you on the readability aspect. I, too, rewrote several<br>
> tpl.php files before I stumbled across a post on DO somewhere that said the<br>
> interspersed technique was as much as 4 times faster to execute. However, we<br>
> still see "print" used exclusively when "echo" is faster...<br>
><br>
> Nancy E. Wichmann,<br>
> PMP<br>
> Injustice<br>
> anywhere is a threat to justice everywhere. -- Dr. Martin L. King,<br>
> Jr.<br>
><br>
</div></div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>