Re: [Templates] ContentType Option?

[prev] [thread] [next] [Date index for 2004/08/05]

From: Perrin Harkins
Subject: Re: [Templates] ContentType Option?
Date: 19:30 on 05 Aug 2004
Kenny Gatdula wrote:
> I noticed there's a TT2ContentType option in Apache::Template. Is there 
> something like this for Template.pm?

Template.pm is not directly tied to web development, so that wouldn't 
make sense.

> Reason I ask is that I find myself 
> having to add a line to registry scripts to explicitly print the content 
> type, and i'd prefer to set an option.

That's normal for CGI scripts.  You can set a default content-type in 
your httpd.conf for that location of file extension if you prefer.

- Perrin

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] ContentType Option?
Kenny Gatdula 19:24 on 05 Aug 2004

Re: [Templates] ContentType Option?
Perrin Harkins 19:30 on 05 Aug 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52