[Templates] stonehenge.com cutting over to Template from Mason

Perrin Harkins perrin@elem.com
Tue, 05 Mar 2002 17:13:09 -0500


Randal L. Schwartz wrote:
> So how do I detect which URL maps to which link in this map, and
> then fire that bar and everything up the chain?

You probably saw this coming (I am a broken record), but I think this is 
an example of when you should use perl, not TT.  It should be pretty 
easy to make a nice data structure for this, look up your place in it, 
and then hand the appropriate display data to TT.  If you're married to 
Apache::Template, you could use a plugin as you mentioned or subclass 
Apache::Template to add this processing.

- Perrin