setting response.content_type to text/xml should make the Genshi
renderer use the proper doctype.
Using @expose('temaplate', content_type='text/xml') should also work.On Tue, Feb 7, 2012 at 11:51 AM, alex bodnaru <[email protected]> wrote: > > hello friends, > > the tg/render.py render function is well designed to receive and pass the > kwargs > argument, to the renderer. > but unfortunately, the kwargs parameter is being lost in the calling process > in > tg/controllers/decoratedcontroller.py. > > i specifically miss this option, since i wish to use a genshi template for xml > output (without auto-generated DOCTYPE). a doctype kwarg would solve my > problem, > though i had to patch RenderGenshi to extract doctype from template_vars, > which > is being passed from the controller. > > could you any solution? > > thanks in advance, > alex > > -- > 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. > -- 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.

