Lo�c Paillotin wrote: > I use Apache::Template in order to display the content of a directory > ( your standard <Location /blah>... </Location> stuff) but I need to > change the content-type of the response (switch from text/html to > text/vnd.wap.wml ...) Is that posssible?
No easy way, I'm afraid, but there is a way. Subclass Template::Service::Apache and provide your own header() method. There's not a lot to it, other than sending the content type and some extra headers. Then use the following directive in the httpd.conf to invoke your new service module: TT2ServiceModule Your::Service::Module Alternately, if you're feeling adventurous, you could figure out how to add the TT2ContentType configuration directive and then hack on the regular Template::Service::Apache::header() method to make this a configurable option. HTH A _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
