[Grok-dev] Re: grok.PageTemplate and content types
Philipp von Weitershausen
philipp at weitershausen.de
Mon Jan 15 14:05:14 EST 2007
Martijn Faassen wrote:
> Philipp von Weitershausen wrote:
> [snip]
>> Right. It should probably suggest that different parsers would be
>> used, e.g.:
>>
>> index = grok.PageTemplate('<p />', parse='xml')
>>
>> or
>>
>> class MyView(grok.View):
>> grok.template('index.pt', parse='xml')
>
> I still am not convinced grok.template should be used for this. This
> would force anyone to spell out the name of a template if they only want
> to control the parser.
Good point. So let's use file extensions ;)
--
http://worldcookery.com -- Professional Zope documentation and training
2nd edition of Web Component Development with Zope 3 is now shipping!
More information about the Grok-dev
mailing list