Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Chris Williams a096578f99 Fixing trailing white space sensitivity for reusable enumerable spec. před 16 roky
examples Fixing trailing white space sensitivity for reusable enumerable spec. před 16 roky
mustache-jquery merged před 16 roky
test Re-enabled test for clean context in case of recursion před 16 roky
.gitignore move jQuery and CommonJS packages to the top level před 16 roky
LICENSE add MIT license před 16 roky
README.md add readme před 16 roky
Rakefile add `rake clean` task před 16 roky
THANKS.md Thanks all! před 16 roky
mustache.js Updated the render_segment to allow for the same variable to be reused for multiple template segments. Added a map function that can be used if not available on array natively - ahem IE ahem před 16 roky
package.json move to package.json top level před 16 roky

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