On Thu, Jun 06, 2002 at 08:15:24PM -0600, Rob Nagler wrote: > The issue here is not whether TT is a bad approach, but rather why the > syntax is not Perl.
One reason is that I like to have minimal syntax in the templates. One argument often used is that non-programmer find it easier to say foo.bar than $foo->{ bar }. But I think the more compelling argument is that even experienced programmers find it easier to write. It's just less syntax. I don't mind syntax in my Perl programs, it serves an important purpose there. But in my templates, I prefer to have everything as simple as possible. Another reason is that foo.bar deliberately abstracts the difference between $foo->{ bar } and $foo->bar(). You can change the underlying implementation of a data structure and you don't need to update your templates. A third reason is that by abandoning strict Perl syntax I can be much more flexible in providing a domain specific language tailored to the task of generating and manipulating content. A