To globally set a xhtml5 renderer in your application, create a
`nagare.wsgi.WSGIApp` subclass and set its `renderer_factory`
attribute to `nagare.namespaces.xhtml5.Renderer`.
For example, in the `app.py` file previously generated by a `nagare-
admin create-app` command, change the last line:
app = <<Root Component>>
by
from nagare import component, wsgi
from nagare.namespaces import xhtml5
class WSGIApp(wsgi.WSGIApp):
renderer_factory = xhtml5.Renderer
def component_factory():
return component.Component(<<Root Component>>())
app = WSGIApp(component_factory)
A `xhtml5.Renderer()` will then be passed to all the views of your
components and a correct xhtml5 DOCTYPE will be automatically inserted
in each generated page.