[Templates] sending header as text/html
Ken Perl
kenperl@gmail.com
Mon, 21 May 2007 21:01:47 +0800
that does make sense, I want to ask my question in this way,
how can I include the code,
print "Content-type: text/html\n\n";
into the wrapper default-template ? I use the wrapper like this,
[% WRAPPER default-template %]
On 5/12/07, Robin Smidsr=F8d <robin@smidsrod.no> wrote:
> Ken Perl wrote:
> > I'm referring to a CGI script that is using Template Toolkit, because
> > all scripts need to print header, so I think template toolkit can help
> > to do it.
> The first pages of the TT tutorial might help you.
>
> http://www.template-toolkit.org/docs/default/Tutorial/Web.html#DYNAMIC_CO=
NTENT_GENERATION_VIA_CGI_SCRIPT
>
> -- Robin
>
> (BTW: RTFM is a good hint)
>
>
> _______________________________________________
> templates mailing list
> templates@template-toolkit.org
> http://lists.template-toolkit.org/mailman/listinfo/templates
>
--=20
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'