On Thu, Jun 23, 2011 at 10:02:00AM +0200, Malthe Borch wrote: > ZPT (the language) includes a set of attributes to define and use > macros – these are together known as METAL. > > See: > > http://chameleon.repoze.org/docs/latest/reference.html#metal > > This system works well –– Plone uses it extensively. > > It would be nice to have an introduction that goes beyond this > reference. It might be out there – somewhere on the internet.
Actually, it would be nice to have documented examples how to use (and re-use) ZPT templates in a simple application. Something as straightforward as having a layout page where you can customize the title and the content with the same structure otherwise is relatively easy to understand and to apply with other template engines IMO, like Jinja2 or Mako for example, whereas I never understood how to actually do that with METAL until I stumped upon the demo application for Deform which does just that. Now, I know where to look for if I want to understand what I can do with METAL, but I don't believe this is the right place I should have find it. Jonathan -- 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.
