[Templates] stonehenge.com cutting over to Template from Mason
Perrin Harkins
perrin@elem.com
Wed, 06 Mar 2002 11:44:21 -0500
Harald Joerg wrote:
> OTOH, one could rather easily set up the data structure in TT in a
> PREPROCESSed template. It is not as elegant as doing this in perl,
> but I found it very convenient to write a macro which enters a new
> document into the structure and then to call this macro for all the
> documents in the PREPROCESSed template. Every document can then
> access the data structure as if it had been created in perl.
The problem has more to do with searching and manipulating the data
structure than creating it. TT's display-oriented language is just not
well-suited to this task. In general, I think that if you try to do
things like this in a mini-language you are basically justifying the
argument of the in-line perl camp: you already know a great powerful
programming language (perl), so why try to program your application in
an intentionally limited one?
- Perrin