Loading...

turbogears@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: [TurboGears] kwargs for render() alex bodnaru Mon Feb 13 03:01:47 2012

hello christoph,

i'm ashamed to tell that i didn't find your code.
is it not in git?

please clarify this matter,
alex

On 02/09/2012 06:02 PM, Christoph Zwerschke wrote:
> As Alessandro said, the rendering options wre already quite sophisticated and
> well-tested.
> 
> Anyway, as suggested by Alex, I have added two more features that allow the 
> last
> fine-tuning of the rendering options.
> 
> 1) You can now add rendering parameters to the expose decorator.
>    E.g. for suppressing the doctype, you can do this:
> 
>    @expose('genshi_template', render_params=dict(doctype=None))
> 
> 2) You can now override the default mappings of content types
>    to doctypes and methods for the Genshi renderer, by setting
>    templating.genshi.doctype and templating.genshi.method in
>    the config to such mappings instead of fixed strings.
> 
> Checked in as commit:2cf110e452. Let me know what you think.
> 
> -- Christoph
> 
> 
> 
> 

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