I need to determine the content-type of the response per request.
With this patch to Template::Service::Apache, it lets me do what I want in
my Template::Service::Apache subclass by defining a content_type subroutine:
159c159
< $r->content_type($self->{ CONTENT_TYPE })
---
> $r->content_type($self->content_type)
169a170
> sub content_type { $self->{ CONTENT_TYPE } }
I didnt actually do this, currently I override the whole headers() sub.
I also thought about setting $self->{ CONTENT_TYPE } every request in my
subclass.
Can I get this applied, or is there a better way to do it?
Todd W.
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates