Changes between Version 37 and Version 38 of TracDev/PortingFromGenshiToJinja
- Timestamp:
- Jan 27, 2017, 11:43:44 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/PortingFromGenshiToJinja
v37 v38 2 2 ** Warning ** 3 3 4 The following documentation corresponds to the [Proposals/Jinja Jinja] development proposal; it will be in Trac 1.3.xif all goes well \\5 (Git branch: [log:cboos.git@jinja2] (original) - [log:cboos.git@jinja2-trunk-r153 41] (latest) - [https://github.com/cboos/trac.git github mirror]).4 The following documentation corresponds to the [Proposals/Jinja Jinja] development proposal; it will be in Trac [milestone:1.3.2] if all goes well \\ 5 (Git branch: [log:cboos.git@jinja2] (original) - [log:cboos.git@jinja2-trunk-r15379] (latest) - [https://github.com/cboos/trac.git github mirror]). 6 6 7 7 Track the integration progress in #12639. … … 11 11 = Porting Templates from Genshi to Jinja2 12 12 13 The following documentation is primarily targeted at plugin developers who wish to adapt their Genshi templates to the Jinja2 template engine that will be used in Trac 1.4.13 The following documentation is primarily targeted at plugin developers who wish to adapt their Genshi templates to the Jinja2 template engine that will be used in Trac [milestone:1.4]. 14 14 15 15 For migrating your own templates, a good way to start is to learn from examples. … … 20 20 The last part of the document describes the Python code changes, focusing notably on how to replace the deprecated `ITemplateStreamFilter` interface. 21 21 22 Note that Genshi will be supported concurrently with Jinja2 only for a short while, for the 1.3.x development period and for the 1.4-stable period. If for some reason you're stuck to having to support Genshi templates, you'll have to stick to Trac 1.2.x or 1.3. x. But you really should make the transition effort as Jinja2 templates are 5-10x faster than their Genshi equivalent, for only a 1/5th of the cost in memory usage.22 Note that Genshi will be supported concurrently with Jinja2 only for a short while, for the 1.3.x development period and for the 1.4-stable period. If for some reason you're stuck to having to support Genshi templates, you'll have to stick to Trac 1.2.x or 1.3.1. But you really should make the transition effort as Jinja2 templates are 5-10x faster than their Genshi equivalent, for only a 1/5th of the cost in memory usage. 23 23 24 24