On Wed, Jun 29, 2011 at 9:57 AM, Damien Accorsi <[email protected]>wrote:
> **
>
> For the Genshi part, I use a lot of <py:def
> function="myFunctionWithParameters(bla,bla2,bla3...)"></py:def> which are
> called in loops of loops (that's why, I believe, it's not efficient).
>
> I'm thinking about migrating to Mako if :
> * I can't improve genshi performance
> * I can't succeed in setting up chameleon.genshi
>
> (I'd like not to migrate to mako as I like the way genshi guarantee the XML
> strucutre)
>
>
To be sure if ChameleonGenshi is enabled you can check if your app_globals
have a chameleon_genshi_loader variable. If they do not have it then you
didn't correctly install or enable Chameleon.
as Michael said ChameleonGenshi can actually be enabled by using
@expose('chameleon_genshi:dotted.template.name') in the page where you want
to use it. If it is slow or you still have problems enabling it you can try
to use kajiki which is fast and genshi-like.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en.