Sebastian Wiesner schrieb: > Hi, > > It's probably even a bit too early to switch the template engine, > considering, that the first final e of jinja 2 was just a month ago, but > jinja 1 will obviously become outdated sooner or later. > > Therefore I put some effort in porting Sphinx templating to the new Jinja2 > engine. > > The attached patch provides a template bridge, sets this bridge as default, > updates the babel configuration and makes required changes to the > templates. > > Note, that I'm not sure, whether the changes to the templates are backward > compatible with Jinja 1. Therefore jinja 1 templating might not work > anymore after application of this patch. > > I tested it against the Sphinx documentation itself and my personal site. > Both build fine, but I can't guarantee, that there are not any visual > failures on the rendered sites, which have resulted from the changes to the > template syntax. > > The attached patch definitely requires much more testing than I did, before > I'd recommend it for inclusion in Sphinx core. > > Most likely Jinja 2 needs some time to grow mature, too, but early releases > give more time for testing.
Thanks for sharing the experience! As soon as Jinja 2 has matured somewhat, we can migrate to it, as it looks like converting custom templates doesn't need many changes. Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" 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/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
