3 ms·
Why did they invent yet another framework-specific template language? What is wrong with Jinja2 and Mako?
by LeafStorm 15y ago
Why did they invent yet another framework-specific template language? What is wrong with Jinja2 and Mako?
- cgbystrom 15y agoThe reason behind "yet another template language" is that we compile down to both Python and JavaScript. Allowing us to render templates both on the server-side and client-side. Sharing templates between these two gets very important when you develop real-time web sites. (I'm one of the developers behind Planet Framework)
- LeafStorm 15y agoAh. That makes sense. Both Jinja2 and Mako are very much tied to Python. (Though compiling a subset of Jinja2 AST's to JavaScript would be an interesting exercise...)
- llimllib 15y agoArmin Ronacher's article explains why they couldn't use either: http://lucumr.pocoo.org/2011/11/15/modern-web-applications-are-here/ http://lucumr.pocoo.org/2011/11/15/modern-web-applications-a... (He's the author/maintainer/we_need_a_new_word_for_this of jinja2, btw)