Edgewall Software

Changes between Version 4 and Version 5 of TracDev/Proposals/Jinja


Ignore:
Timestamp:
Jan 27, 2016, 9:32:59 PM (8 years ago)
Author:
Christian Boos
Comment:

not much to be seen for cobbler/jinja2, remove links + some updates

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/Proposals/Jinja

    v4 v5  
    11= Add Support for the Jinja2 Template Engine
    22
    3 We've decided some time ago to remove support for the ClearSilver template engine, in Trac 0.12, but this didn't happen yet. Clearsilver had its share of inconveniences, enough that we decided to switch to the nicer [http://genshi.edgewall.org/ Genshi template engine] in 0.12, but it was **very** fast and memory lenient. While we managed to keep Genshi memory usage somewhat in control (remember #6614), the speed was never really adequate, especially for big changesets and for displaying source files over a few thousand lines of code (see TracDev/Performance#Genshi for details).
     3We've decided some time ago to remove support for the ClearSilver template engine, in Trac 0.12, but this didn't happen yet. Clearsilver had its share of inconveniences, enough that we decided to switch to the nicer [http://genshi.edgewall.org/ Genshi template engine] in 0.12, but it was **very** fast and memory lenient. While we managed to keep Genshi memory usage somewhat in control (remember #6614?), the speed was never really adequate, especially for big changesets and for displaying source files over a few thousand lines of code (see TracDev/Performance#Genshi for details).
    44
    55So one solution would be to switch once again, to a template engine that would combine the advantages of Genshi (pure Python, nice templates, flexible) and ClearSilver (speed!). Such a beast seems to exist now: **[http://jinja.pocoo.org/2/documentation/ Jinja2]**.
     
    1313 * others?
    1414
    15 See also: googlegroups:trac-dev:fc8d8c0447140110
     15See also [googlegroups:trac-dev:fc8d8c0447140110 this Trac-Dev discussion] from 2010, which is still pertinent. Well, obviously we managed to release Genshi 0.6 since then, but the issue is a recurring one, see this recent (2016-01)
     16[gmessage:trac-users:PYqQ4UDRnl8/wg8lQzrGDAAJ Genshi question] on Trac-Users.
    1617
    17 == Status
    1818
    19 Nothing started yet, and the urgency has dropped now that we have a good [http://genshi.edgewall.org/milestone/0.6 Genshi 0.6 release] available.
    2019
    21 == Other projects looking at Jinja2
    2220
    23 [http://www.cobblerd.org/ Cobbler] - looking at [http://www.cobblerd.org/manuals/2.6.0/4/6_-_Alternative_Template_Formats.html a move from cheetah to jinja2].