NYCPHP Meetup

NYPHP.org

[nycphp-talk] Templating engines

Cliff Hirsch cliff at pinestream.com
Wed Jan 23 14:01:22 EST 2008


On 1/23/08 1:54 PM, "John Campbell" <jcampbell1 at gmail.com> wrote:
> If there is a separation between the programmer and the template
> editor, it presents another problem.  Who is responsible for escaping
> the data?

> I tend to end up with a mix, and it can get quite confusing.

Ditto -- and it is infuriating and time consuming to unravel later. I've
adopted the practice of adding a comment in the template to any variable
that is escaped in the code {*escaped in code*}. Saves a lot of time, 2nd
guessing, and code review later on.





More information about the talk mailing list