Open alexbodn opened 8 years ago
the @expose should have content_type='application/xhtml+xml'
Newly quickstarted 2.3 apps come configured in a HTML5 way, so they serve as text/html
. Making xhtml the default would force the majority of users to change this.
KajikiRenderer.call should also take **kwargs, that will be received as the render_params passed to @expose.
That's actually already supported in 2.3, but was undocumented, has been documented in an August commit still unreleased :)
my kajiki widgets and other kajiki templates share the same kajiki modules, i made a small patch to add_tosca2_middleware, so that the template path will be the same in imports.
That looks useful, I'll try to check Tw2 integration as soon as the tw2 patch is approved.
the far i could understand, the content type would be needed to validate as xhtml 5. this is the format requested from the template designer.
i saw your submits on tw2.core ;) .
hello friends, and a big thank for turbogears. i've made and being maintaining a tg 2.1.5 app, that is currently in upgrading process to html5/kajiki. please allow me to give back, and implement my patches for code and documentation. indeed, upgrading to tg 2.3 would be good too, but my tg is quite patched and extended, that would need some more work.
this would need a patch that i've already submitted in tw2.core.
hope that helps, alex