Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Mu2 vs Mustache.js? Should I use the Mu2 module or the Mustache.js module for nodejs templating

Mu2 vs Mustache.js? Should I use the Mu2 module or the Mustache.js module for nodejs templating

Problem

I've decided that I will be using Mustache for our templating engine for our Nodejs project but I don't see what the differences between the Mu2 ( https://github.com/raycmorgan/Mu ) and the mustache.js ( https://github.com/janl/mustache.js ) modules are.

Usually I just check the Github network and go with the most active of the communities but they seem to both be maintained just fine.

Can anyone enlighten me on what the differences might be so that I can make an informed decision.

Problem courtesy of: real_ate

Solution

Right I think i've figured out the difference, if someone could confirm that would be awesome!

I found this page http://mustache.github.com/ that seems to be separating out mustache for Javascript and Mustache for Node.js

I think the node.js version is just using some node tools for caching and rendering and all that but the Mustache.js is using pure javascript and in my case could be done in the frontend or the backend.

For Node.js i would assume that the Mu2 version will be much faster and more efficient.

Solution courtesy of: real_ate

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Mu2 vs Mustache.js? Should I use the Mu2 module or the Mustache.js module for nodejs templating

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×