No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Alexander Lang 697bca307a fixed bug where mustache had access to data from previous runs hace 16 años
examples added processing arrays of plain values hace 16 años
test fixed bug where mustache had access to data from previous runs hace 16 años
.gitignore add gitignore hace 16 años
LICENSE add MIT license hace 16 años
README.md add readme hace 16 años
Rakefile add test suite, implement escaping hace 16 años
mustache.js fixed bug where mustache had access to data from previous runs hace 16 años

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