[Zope-dev] Content Type Meta tag stripping in zope.pagetemplate

Fred Drake fred at fdrake.net
Thu Feb 23 11:44:13 UTC 2012


On Thu, Feb 23, 2012 at 2:54 AM, Miano Njoka <mianonjoka at gmail.com> 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


More information about the Zope-Dev mailing list