mardi 24 mars 2015

Jasmine, Marko, Jade, Moustache template engine madness


In the world of MEAN Stack.


I need a template engine that is:



  • async.

  • fast.

  • provides injection during rendering.

  • mature enough to carry on over the years.



I couldn't find any good comparisons to clear my doubts



I was about to put my money on Marko, did anyone actually worked with it before? Are there any important cones I should know about?


Do you consider, injection on rendering as awesome as I do:



var templatePath = require.resolve('./template.marko');
var template = require('marko').load(templatePath);

app.get('/', function (req, res) {
template.render({name: 'Frank'}, res);
});


Let's make this question a ultimate smack down of rendering engines for node.





Aucun commentaire:

Enregistrer un commentaire