On Tue, 2004-12-28 at 23:41 +0200, Octavian Rasnita wrote: > Newbie: > Can you please tell me what's the difference between using this module > (Apache::Template) and using: > > PerlModule Template > > ...in httpd.conf?
Apache::Template is a module that maps web requests to Template Toolkit templates, based on the URI. 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 [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
