Re: [Templates] [ANNOUNCE] Apache::Template 0.09 ported to mod_perl 2.0
[prev]
[thread]
[next]
[Date index for 2004/12/29]
Ok, thanks, now I understand.
But let's say I have a directory structure like the following, with same .tt
templates in each directory:
classic
index.tt
header.tt
footer.tt
etc.tt
modern
index.tt
header.tt
footer.tt
etc.tt
...and I want to call a template like this:
http://www.site.com/classic/etc.tt
or
http://www.site.com/modern/etc.tt
Can I do these mappings with Apache::Template?
Thanks.
Teddy
From: "Perrin Harkins" <perrin@xxxx.xxx>
Template Toolkit itself knows nothing
about the web and doesn't have any default mapping of web requests to
templates. To use TT with mod_perl without Apache::Template, you would
write your own mod_perl handler that chooses which template to run to
handle requests.
If you just want /foo.tt to result in a template called foo.tt being
run, Apache::Template will do it for you. If you want to do something
more significant, like build an MVC web application, you should write
your own handler.
Hope that clears it up for you.
- Perrin
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates