On 2009-9-26 21:10, Thomas G. Willis wrote: > > On Sep 26, 10:14 am, Wichert Akkerman<[email protected]> wrote: >> On 2009-9-25 22:55, Iain Duncan wrote: >> >> >> >>>> Hm, the chameleon.zpt template has not seen as much love as the >>>> chameleon.genshi version so it might have broken somewhere. Can you test >>>> if chameleon.genshi works for you? If so I'll look at fixing up the >>>> chameleon.zpt version. >> >>> Thanks, Chameleon genshi is working with your correction. Is the plan >>> for chameleon to eventually be able to support both genshi and tal >>> attributes at the same time or will it always be an either or? >> >> My correction was in chameleon.zpt. chameleon.genshi has always had a >> working template loader. >> >> As far as I know there are no plans to support both Genshi and Page >> Template syntax in the same file, and I have to admit that I personally >> do not see any real benefits to doing that. chameleon.zpt does go a >> little bit beyond the official zpt standards though: it also supports >> ${...} expansions, similar to Genshi templates. >> >> Wichert. >> >> -- >> Wichert Akkerman<[email protected]> It is simple to make >> things.http://www.wiggy.net/ It is hard to make things >> simple. > > > I was just playing with this and it seems that the genshi syntax is > somewhat limited. Is that correct? > > For example, including a site page just like this example from gensh > blows up. > http://genshi.edgewall.org/wiki/GenshiTutorial#AddingaLayoutTemplate > > > And even though I know it's not good practice to do the whole<? > python ?> thing, chameleon seems to blow up on this as well.
To be more precise: chameleon.genshi implements the Genshi XML template syntax as described in http://genshi.edgewall.org/wiki/Documentation/0.5.x/xml-templates.html . <?python> is not a part of that syntax. That tutorial does not work due to a limitation chameleon.genshi currently has: match templates defined in included templates are not applied to the calling document. That is documented at http://pypi.python.org/pypi/chameleon.genshi. If enough people ask Malthe if he can add support for that might be fixed :) Wichert. -- Wichert Akkerman <[email protected]> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
