Award-Winning Fjords Thomas Reynolds

Mustache for JavascriptMVC 3

If you're a fan of the Mustache templating language, here's a plugin to integrate it with JavascriptMVC 3.

There are two ways of grabbing the code. If you have a very recent version of JavascriptMVC 3 you can use the new getjs method of installing plugins. The command, from your project folder, looks like this:

./steal/js steal/getjs mustache

Alternatively, you can grab the code from the Github repository:

git clone git:// mustache

Include it in your app:


Create some .mustache files and use them normally:

$("#elem").html("//views/template.mustache", { variable: "Value" })