Live data from Hacker News

Javascript Templating Engine Chooser

garann.github.io

11–20 of 33 posts

Re: Javascript Templating Engine Chooser

#13
It's also missing Nunjucks, which works in browser and server, can precompile templates (when done so is really fast), lets you do more logic in templates, has autoescaping, and a bunch of other stuff. Some big project like Mozilla's new Marketplace is using it.

https://github.com/jlongster/nunjucks

Re: Javascript Templating Engine Chooser

#18
This is just one of the reasons why I feel developing web apps has gotten harder. While there are a lot of javascript frameworks it is likely two projects pick different routes. It basically means if I need to maintain a project I will have to learn a new javascript library.

Re: Javascript Templating Engine Chooser

#20
post #18

This is just one of the reasons why I feel developing web apps has gotten harder. While there are a lot of javascript frameworks it is likely two projects pick different routes. It basically means if I need to maintain a project I will have to learn a new javascript library.

Hmm, I see why it could feel like that but I don't really agree. Here's another angle:

Would you rather learn some (hopefully) very well worked-out library with good documentation and all the edge-cases slaved over, with multiple contributors, with Stack Overflow questions about it ... or, would you like to learn some random guy's non-library library, because he was scared of libraries, so he just made up a load of ad-hoc conventions in his codebase.

I'd rather learn to use Backbone, Angular and Ember, than have to deal with big-ball of mud code based on no library in particular. Same goes for templating libraries, I'd rather learn a handful (after all they're relatively trivial to use), than come to a codebase that uses none at all.

Post reply on HN