On 17 December 2011 14:28, Joshua Partogi <[email protected]> wrote:
> I am left undecided whether to use mako or chameleon. From what I have
> observed, it seems that chameleon is the default template language in
> pyramid (CMIIW). Is there any case where chameleon is more preferred
> when using pyramid? I actually like mako but I am afraid there are
> some mako functionality that is not supported in pyramid.

AFAIK, Mako only has rudimentary support for internationalization
(i18n). ZPT (or "page templates") does provide a lot more here.

That said, Mako probably has more features, e.g.:

  http://www.makotemplates.org/docs/syntax.html#python-blocks

We don't have that in page templates. You're a bit more constrained.
The good thing in that is that you're likely to be able to quickly
read and understand a page template that someone else wrote, because
there's only a limited complexity there.

As for the fun factor, in the Chameleon implementation there's been an
attempt to make things easier and possibly more "fun", e.g. string
interpolation using ${<expr>}, easy imports of other templates
(relative, absolute or via asset spec), import of Python modules and
module globals, implicit i18n, compatibility with Python 3 etc.

\malthe

-- 
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.

Reply via email to