|
|
16 anos atrás | |
|---|---|---|
| examples | 16 anos atrás | |
| mustache-jquery | 16 anos atrás | |
| test | 16 anos atrás | |
| .gitignore | 16 anos atrás | |
| LICENSE | 16 anos atrás | |
| README.md | 16 anos atrás | |
| Rakefile | 16 anos atrás | |
| THANKS.md | 16 anos atrás | |
| mustache.js | 16 anos atrás | |
| package.json | 16 anos atrás | |
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.
// 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