Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Alexander Lang 437056a7e7 added processing arrays of plain values il y a 16 ans
examples added processing arrays of plain values il y a 16 ans
test added processing arrays of plain values il y a 16 ans
.gitignore add gitignore il y a 16 ans
LICENSE add MIT license il y a 16 ans
README.md add readme il y a 16 ans
Rakefile add test suite, implement escaping il y a 16 ans
mustache.js added processing arrays of plain values il y a 16 ans

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