Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Jan Lehnardt 8d7238f9fc add `rake clean` task il y a 16 ans
examples Fixed changing the delimiter il y a 16 ans
mustache-jquery merged il y a 16 ans
test Re-enabled test for clean context in case of recursion il y a 16 ans
.gitignore move jQuery and CommonJS packages to the top level il y a 16 ans
LICENSE add MIT license il y a 16 ans
README.md add readme il y a 16 ans
Rakefile add `rake clean` task il y a 16 ans
mustache.js Fixed changing the delimiter il y a 16 ans
package.json move to package.json top level il y a 16 ans

README.md

mustache.js

What could be more logical awesome than no logic at all?

Shamless port of http://github.com/defunkt/mustache by Jan Lehnardt jan@apache.org.

Thanks @defunkt for the awesome code.

Usage

// load mustache.js

var view = { title: “foo”, calc: function() { return 2 + 4; } }

var template = “{{title}} spends {{calc}}";

var html = Mustache.to_html(template, view);

// whatever you want to do with html

See examples/ for more goodies and read the original mustache docs