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 2d5b7e2c81 Merge branch 'master' of git://shakti.local/mustache.js pirms 16 gadiem
examples Merge branch 'master' of git://shakti.local/mustache.js pirms 16 gadiem
test fixed bug where recursion overwrote data in the parent context 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 Merge branch 'master' of git://shakti.local/mustache.js 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