[Fwd: [Fwd: Re: [Templates] sending header as text/html]]

Eric Berg eberg@bergbrains.com
Tue, 22 May 2007 06:46:39 -0400


This is a multi-part message in MIME format.
--------------020301090202060407020203
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


--------------020301090202060407020203
Content-Type: message/rfc822;
 name="[Fwd: Re: [Templates] sending header as text/html].eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename*0="[Fwd: Re: [Templates] sending header as text/html].eml"

Return-Path: <templates-admin@template-toolkit.org>
X-Original-To: eberg@bergbrains.com
Delivered-To: eberg@bergbrains.com
Received: from cat.ourshack.com (cat.ourshack.com [212.74.28.153])
	by tishrei.maltin.org (Illium Forge and Foundry Co., Mail Server Software Daemon) with ESMTP id ED65E1238A3
	for <eberg@bergbrains.com>; Tue, 22 May 2007 06:43:15 -0400 (EDT)
Received: from localhost
	([127.0.0.1] helo=cat.ourshack.com ident=mailman)
	by cat.ourshack.com with esmtp (Exim 4.63)
	(envelope-from <templates-admin@template-toolkit.org>)
	id 1HqRp1-00037i-Q9; Tue, 22 May 2007 11:42:36 +0100
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cat.ourshack.com
X-Spam-Level: 
X-Spam-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,Z_TEMPLATE 
	autolearn=no version=3.1.7
Received: from smtp02.lnh.mail.rcn.net ([207.172.157.102])
	by cat.ourshack.com with esmtp (Exim 4.63)
	(envelope-from <eberg@bergbrains.com>)
	id 1HqRj7-0002sY-5v
	for templates@template-toolkit.org; Tue, 22 May 2007 11:36:25 +0100
Received: from mr08.lnh.mail.rcn.net ([207.172.157.28])
  by smtp02.lnh.mail.rcn.net with ESMTP; 22 May 2007 06:36:14 -0400
Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11])
	by mr08.lnh.mail.rcn.net (MOS 3.8.3-GA)
	with ESMTP id IRL64414;
	Tue, 22 May 2007 06:36:13 -0400 (EDT)
Received: from 207-237-54-131.c3-0.avec-ubr9.nyr-avec.ny.cable.rcn.com (HELO [127.0.0.1]) ([207.237.54.131])
  by smtp01.lnh.mail.rcn.net with ESMTP; 22 May 2007 06:36:05 -0400
Message-ID: <4652C7A9.5030701@bergbrains.com>
From: Eric Berg <eberg@bergbrains.com>
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
MIME-Version: 1.0
To: templates@template-toolkit.org
Subject: [Fwd: Re: [Templates] sending header as text/html]
Content-Type: multipart/mixed;
 boundary="------------000603070209020604000707"
X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net
X-Junkmail-SD-Raw: score=unknown,
	refid=str=0001.0A090209.4652C79D.00AC,ss=1,fgs=0,
	ip=207.172.4.11,
	so=2006-12-09 10:45:40,
	dmn=5.1.5/2006-01-31
Sender: templates-admin@template-toolkit.org
Errors-To: templates-admin@template-toolkit.org
X-BeenThere: templates@template-toolkit.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:templates-request@template-toolkit.org?subject=help>
List-Post: <mailto:templates@template-toolkit.org>
List-Subscribe: <http://lists.template-toolkit.org/mailman/listinfo/templates>,
	<mailto:templates-request@template-toolkit.org?subject=subscribe>
List-Id: Template Toolkit mailing list <templates.template-toolkit.org>
List-Unsubscribe: <http://lists.template-toolkit.org/mailman/listinfo/templates>,
	<mailto:templates-request@template-toolkit.org?subject=unsubscribe>
List-Archive: <http://lists.template-toolkit.org/pipermail/templates/>
Date: Tue, 22 May 2007 06:36:25 -0400

This is a multi-part message in MIME format.
--------------000603070209020604000707
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit


--------------000603070209020604000707
Content-Type: message/rfc822;
 name="Re: [Templates] sending header as text/html.eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: [Templates] sending header as text/html.eml"

Return-Path: <templates-admin@template-toolkit.org>
X-Original-To: eberg@bergbrains.com
Delivered-To: eberg@bergbrains.com
Received: from cat.ourshack.com (cat.ourshack.com [212.74.28.153])
	by tishrei.maltin.org (Illium Forge and Foundry Co., Mail Server Software Daemon) with ESMTP id C7AFD12389B
	for <eberg@bergbrains.com>; Tue, 22 May 2007 06:31:20 -0400 (EDT)
Received: from localhost
	([127.0.0.1] helo=cat.ourshack.com ident=mailman)
	by cat.ourshack.com with esmtp (Exim 4.63)
	(envelope-from <templates-admin@template-toolkit.org>)
	id 1HqRdZ-0002YK-4l; Tue, 22 May 2007 11:30:42 +0100
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cat.ourshack.com
X-Spam-Level: 
X-Spam-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,Z_TEMPLATE 
	autolearn=no version=3.1.7
Received: from an-out-0708.google.com ([209.85.132.248])
	by cat.ourshack.com with esmtp (Exim 4.63)
	(envelope-from <kenperl@gmail.com>)
	id 1HqRYx-0002NF-Qo
	for templates@template-toolkit.org; Tue, 22 May 2007 11:25:56 +0100
Received: by an-out-0708.google.com with SMTP id b2so399343ana
        for <templates@template-toolkit.org>; Tue, 22 May 2007 03:25:54 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=XP6DDY7KqzFhf4k+N+x38J2jvwN7BuhhdF6D4gQnRQEOCWEqqbZs7zghFgFWWQTzqXWmxJ8MxKE9dvd7WcETD5c6k708+n9q67gDKpKosb577KJyedsYb2eLw7MT4gsRXA5axrbwbHp6AX14+woV6pNcE9YF6J9Hzx0mejGy9pg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=s8XqytZVXRMaPrKEhreDjdCBU2/sX94teuzyg5+e+Rt3YGan/QHpaEmVCqVOfq1hGxgYbqmz7b8YHGHPt6TcW0bWF9/f2Lqudu3wbVLX7h5QF6vNDtaZcVDN+zGrv4fHn/nXt/t5pkHMDLgcAKFVphJPT9UaEKGtWf/CyxWOmm4=
Received: by 10.100.124.5 with SMTP id w5mr3706627anc.1179829553861;
        Tue, 22 May 2007 03:25:53 -0700 (PDT)
Received: by 10.100.165.13 with HTTP; Tue, 22 May 2007 03:25:53 -0700 (PDT)
Message-ID: <335b7d740705220325l74537666qbe4c3371d5517fe4@mail.gmail.com>
From: "Ken Perl" <kenperl@gmail.com>
To: "Dave Cross" <dave@dave.org.uk>
Subject: Re: [Templates] sending header as text/html
Cc: templates@template-toolkit.org
In-Reply-To: <46519D0D.9080306@dave.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <335b7d740705110427l277df3f5wf7382f507c5f24c0@mail.gmail.com>
	 <86bqgry410.fsf@blue.stonehenge.com>
	 <335b7d740705112148p5a268af8g191a2807824d1f8c@mail.gmail.com>
	 <464584EB.9090909@smidsrod.no>
	 <335b7d740705210601k7321a6f6j7661e1c6c43cfdf1@mail.gmail.com>
	 <46519D0D.9080306@dave.org.uk>
Sender: templates-admin@template-toolkit.org
Errors-To: templates-admin@template-toolkit.org
X-BeenThere: templates@template-toolkit.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:templates-request@template-toolkit.org?subject=help>
List-Post: <mailto:templates@template-toolkit.org>
List-Subscribe: <http://lists.template-toolkit.org/mailman/listinfo/templates>,
	<mailto:templates-request@template-toolkit.org?subject=subscribe>
List-Id: Template Toolkit mailing list <templates.template-toolkit.org>
List-Unsubscribe: <http://lists.template-toolkit.org/mailman/listinfo/templates>,
	<mailto:templates-request@template-toolkit.org?subject=unsubscribe>
List-Archive: <http://lists.template-toolkit.org/pipermail/templates/>
Date: Tue, 22 May 2007 18:25:53 +0800

Dave,

I tried the put
        [% USE CGI;
        CGI.header %]

in the default-template, but it seems I still see the html source code
in the firefox2.0, any idea what is wrong? why it doesn't work?


On 5/21/07, Dave Cross <dave@dave.org.uk> wrote:
> Ken Perl wrote:
>
> > how can I include the code,
> >
> >   print "Content-type: text/html\n\n";
>
> You know that only creates a _really_ correct CGI header on a Windows
> web server :)
>
> > into the wrapper default-template ? I use the wrapper like this,
> >
> > [% WRAPPER default-template %]
>
> Use the CGI plugin[1]. That'll get your line endings right too.
>
>      [% USE CGI;
>         CGI.header %]
>
> Dave...
>
> [1]
> http://www.template-toolkit.org/docs/plain/Modules/Template/Plugin/CGI.html
>


-- 
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

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

--------------000603070209020604000707--


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

--------------020301090202060407020203--