NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
mapping URLs to template files (Score:1)
However, if I were trying to do what you are doing (map /foo.html to a handler that will run a template called foo.html), the easiest approach is the Files directive:
Then in My::TT::Handler you just look at the URI (see the documentation for the $r request object on the mod_perl site) and decide which file to run through TT based on that.This being apache, there are 1000 other ways to do it. Some are in the new TT book, one of them in on-line here [template-toolkit.org], and all of the ways people do it with other systems like HTML::Template apply to TT as well.
Reply to This
Re:mapping URLs to template files (Score:1)
Appreciate the comment.