[Zope-dev] Interface for renderable component
Malthe Borch
mborch at gmail.com
Mon Sep 15 16:46:30 EDT 2008
Currently a number of z3c.* packages rely on
``zope.pagetemplate.interfaces.IPageTemplate`` even though they don't
care at all that it's a template they're getting. All they need to know
is that it's a callable and that it returns HTML.
I think it'd be a good idea to introduce the following interface that we
can use instead:
class IRenderer(Interface):
def __call__(**kwargs):
"""Outputs HTML."""
This interface should be defined in a package with minimal dependencies.
\malthe
More information about the Zope-Dev
mailing list