Skip to content
pvande edited this page Jan 1, 2011 · 4 revisions

Milk is an implementation of Mustache in CoffeeScript. While it works beautifully in a server-side environment like Node, it's also capable of being used in browsers. It may not be the fastest implementation, but it's fairly simple and clean.

It has been written from the ground up in support of the Mustache specification, which it uses as its primary test suite.

Like mustache.js (and unlike Mu), Milk expects all template strings, data, and partials to be accessible as in-memory data structures, and will make no attempt to read files off disk. While this may introduce slight inconveniences in Node environments, it makes it far more portable to other Javascript environments. (Node-specific extensions may be considered as a future enhancement.)

Clone this wiki locally