
Originally Posted by
stardustwd
I don't think you can claim it's a myth, it's after all a personal preference. Many designers I've worked with prefer it, it's what they know and it's what they're comfortable with. Some will run a mile if they see <?php echo $content; ?> I know it doesn't make sense to us and I agree, I'd choose pure PHP templates every time over Smarty and I do more often than not, but if I'm working with a designer who prefers Smarty, why not let them work with what they're comfortable with?
Hi 
Personnaly, I don't believe in it. If I ever work with such designers, I'll make them run. Wordpress is most probably the app that is the target of choice of designers when it comes to create themes. And...and...and... (drums roll) here's the index file:
PHP Code:
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Of course, Wordpress is not super OO friendly and things could be improved, but it's the proof that designers can work around a bit of php. And if they can't, fire them, or ask them to learn. After all, if they've got through the w3c specs (which any good designer has done, as we all know) a bit of echo and looping shouldn't be the end of the world.
I personnaly don't see the need for a template engine.
Bookmarks