Re: Content Type Meta tag stripping in zope.pagetemplate

Fred Drake <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAFT4OTFJxziCxa4bn4Q=XrR7k2dfor2bvthOSoM_dEQCnK3G1A@mail.gmail.com>
On Wed, Feb 22, 2012 at 10:28 AM, Miano Njoka <[email protected]> wrote:
> <meta http-equiv="content-type" content="text/html;charset=UTF-8"
> /> tags were being stripped out from ZPT templates. Is there a reason
> for this?

As I recall, the rationale goes like this:

1. We're sniffing the input encoding from the charset setting.

2. We're storing the content-type on the instance (I hope tihs
   is still true).

3. The template/application/publisher is responsible for
   delivering the the output with an appropriate content-type
   header.


-- 
Fred L. Drake, Jr.    <fred at fdrake.net>
"A storm broke loose in my mind."  --Albert Einstein
_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.