On Fri, Apr 27, 2012 at 02:53:33PM +0200, Sebastien Douche wrote:
> On Fri, Sep 16, 2011 at 03:41, Chris McDonough <[email protected]> wrote:
>
> Hi Chris
> Sorry for replying so late but at last, we use Chameleon (with z3c.ptcompat).
>
> > I can't really suggest how to rewrite zc.pagelet. Its readme is written
> > in terms of satisfying a goal I've never shared, I don't want to share,
> > and I don't want to understand or even know anything about.
>
> It could not be clearer :). How you write "reusable" template with
> Pyramid? With Chameleon and METAL? Mako? Jinja?
I've started to think of templates as plain old python functions that
return unicode. So an example of a reusable template is something like
this for me:
def navigation(request, links):
...
Putting templates together then becomes putting functions together.
Often I use Chameleon to do the actual rendering, but sometimes not.
--
Brian Sutherland
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.