In the framework I am working with, if I want to present data in a view I do this:
<h1><?php echo $this->header ?></h1>
Recently I discovered xTemplate and noticed it uses string placeholders, so the above code in a xTemplate would be:
<h1>{HEADER}</h1>
I always thought that a little php in the view was ok and was also faster than doing a str_replace, but I have recently started working with a designer and I think lot's of php tags in the html might confuse him.
I would like to know your thoughts on this subject.
Thanks.
Note: This might be subjective but I really want to find out the best way or at least know all the pros and cons of both of these approaches.