Re: Pluggable template engine

Leonardo Rochael Almeida <[email protected]>
Newsgroups gmane.comp.web.zope.devel
Message-ID <CAMxX_oN=jHHyz_r=xfY13QPRK5ZXKT5Q9iX4B6_=GfjJm3px6Q@mail.gmail.com>
Hi Malthe,

How often is the adaptation called?

For example, suppose a Page Template had a tal:repeat that rendered a
macro inside of it. If that tal:repeat looped 5 times, do we get 5
more adaptation calls, besides the call of the outermost Page
Template?

Just asking out of curiosity, I haven't looked at the code, other than
the interface link you posted.

Cheers,

Leo

On Wed, Jul 20, 2011 at 17:24, Malthe Borch <[email protected]> wrote:
> I've refactored the ``pagetemplate`` module to realistically support
> plugging in an alternative implementation of the parser and
> interpreter.
>
>  http://svn.zope.org/zope.pagetemplate/branches/engine-as-component/
>
> Two new interfaces are added which serve as the plugging point see
> ``IPageTemplateEngine`` and ``IPageTemplateProgram`` in this module:
>
>  http://svn.zope.org/zope.pagetemplate/branches/engine-as-component/src/zope/pagetemplate/interfaces.py?rev=122300&view=markup
>
> I'd like to propose merging this into trunk.
>
> \malthe
> _______________________________________________
> 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 )
>
_______________________________________________
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.