Re: Content Type Meta tag stripping in zope.pagetemplate

Fred Drake <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAFT4OTGkT0y=u6XHRpObGV0YJdyX6VC3htmT305NhQ=_+-wK3g@mail.gmail.com>
On Thu, Feb 23, 2012 at 2:54 AM, Miano Njoka <[email protected]> wrote:
> Yes, this is true, but why strip out the meta tag from the resulting HTML?

Two reasons:

1. It may be incorrect.

2. If multiple templates are used to construct a response, different
   values may be included from each template, which may be inconsistent.

Since the meta element is unnecessary, it seemed better to leave it out
of the result, and rely on other components to render the correct values
without requiring them to insert correct values into the rendered template.
(The publisher, for instance, shouldn't need to know how to edit that into
the finished HTML.)


  -Fred

-- 
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.