Jorge Vargas schrieb:
> first remember the original feature was a buffet thing which as you
> all know it's deprecated. (I'll use the tag to keep links sane for the
> future)
> 
> That said
> option 1
> turn buffet on.
> set use_legacy_renderer in app_cfg.py
> 
> that will allow your code to call setup_default_renderer
> http://trac.turbogears.org/browser/tags/2.0b5/tg/configuration.py#L375
> 
> and you can set the values you wan to send to genshi in
> config['buffet.template_options'].update(options)
> http://trac.turbogears.org/browser/tags/2.0b5/tg/configuration.py#L397

Ok, but this is not documented, it's more complicated than in TG1, and 
most of all it's deprecated, so I really don't like to use it.

> Umm I'm not sure if it's possible without patching some code. Or
> adding it locally.
> 
> You will have to add your own renderer that will wrap the original one.
> as the **kargs passed there will be send to genshi
> http://trac.turbogears.org/browser/tags/2.0b5/tg/render.py#L111
> 
> and write something similar to
> http://trac.turbogears.org/browser/tags/2.0b5/tg/configuration.py#L333
> that will load your renderer.

I think that's a bit hefty when all I want is change one parameter of my 
templating engine, e.g. setting the output method from xhtml to html.

Also, it's not documented. Surely something needs to be done about this.

Honestly speaking, I don't understand why things have been made so 
complicated, why so much of the TG1 goodness has been given up so easily 
and good ideas like Buffet have been deprecated. Flexibility is good, 
but wasn't our motto for TG to keep simple things simple and complex 
things possible? My impression is that the first part of the motto has 
been forgotten in some areas of TG2 development.

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

Reply via email to