[Grok-dev] Re: grok.PageTemplate and content types

Martijn Faassen faassen at startifact.com
Mon Jan 15 07:12:56 EST 2007


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.

Regards,

Martijn



More information about the Grok-dev mailing list