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.
Jan Lehnardt 81fcc08fd5 cleanup hace 16 años
examples allow for delimiter changes hace 16 años
test add mustache tests, implement partials 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 cleanup 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