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 c7b4cef787 merged hace 16 años
examples Fixed changing the delimiter hace 16 años
mustache-commonjs merged hace 16 años
mustache-jquery merged hace 16 años
test Re-enabled test for clean context in case of recursion hace 16 años
.gitignore merged hace 16 años
LICENSE add MIT license hace 16 años
README.md add readme hace 16 años
Rakefile merged hace 16 años
mustache.js Fixed changing the delimiter 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