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