Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Alexander Lang 697bca307a fixed bug where mustache had access to data from previous runs pirms 16 gadiem
examples added processing arrays of plain values pirms 16 gadiem
test fixed bug where mustache had access to data from previous runs pirms 16 gadiem
.gitignore add gitignore pirms 16 gadiem
LICENSE add MIT license pirms 16 gadiem
README.md add readme pirms 16 gadiem
Rakefile add test suite, implement escaping pirms 16 gadiem
mustache.js fixed bug where mustache had access to data from previous runs pirms 16 gadiem

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