Hello! GSoC 2014 is coming and I'm thinking about issue to work on. The template system is one of the components that are of special interest to me. One of the major issues is that rendering templates is slow. The problem could be solved by compiling template to Python bytecode, but it seems to be really hard to achieve, given that there was an unsuccessful attempt.
Why not switching to Jinja2? I thought that somebody else proposed this idea but I couldn't find any discussion; so, please, point me to the discussion if the idea was discussed, otherwise let's discuss it! The pros are obvious: 1) fast templates, 2) less code to maintain, 3) lot's of companies use Jinja2 (because of slowness of default template system) and builtin support for Jinja2 would be beneficial for them (thing about integrating Jinja2 with settings like TEMPLATE_DEBUG). Now the cons. First of all, one of the design decision is that Django has no dependencies. We can overwhelm it by "static linking" -- I mean copying Jinja2 code into Django. At the first glance, it may look like a horrible idea, but think about it in a different way. If we don't switch to Jinja2, we have to maintain entire template system and fix every bug as well as implement new features. If we switch, Jinja2 developers can do this job for us. We only need to forward tickets to Jinja2 developers and update the static linkage. The second big problem is that switching is a big change and backward compatibility matters. We will need to support both the deprecated Django template system and the new one. However, it doesn't mean double work -- we don't need to implement new features for the deprecated system, only bug fixes will be required. Also note, that a lot of companies uses Jinja2 and switching from third-package Jinja2 to Jinja2-builtin-Django isn't an enormous change at all. I'd like to hear your opinion. Feel free to comment! BTW, I'd like to have an internship in the late summer. It's impossible to work at GSoC and have an internship at the same time, but I really want to do both, so I need to start GSoC as early as possible, at 21 April or even earlier. Is it possible? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/a6a176b2-b380-4ba7-8bad-0f3d6719cb03%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
