mustache

Timeout in a Couchapp list when using mustache

I have a simple list view in which I (try to) use mutache to render the output of a list containing 5 results. function(head, req) { var row, mustache = require("vendor/couchapp/lib/mustache.js"), template = "<li>{{project}} {{version}} {{description}}</li>"; while(row = getRow()) { send(mustache.to_html(template,...

What's the advantage of Logic-less template (such as mustache)?

Recently, I ran into mustache which is claimed to be Logic-less template. However, there is no explaining why it is designed in Logic-less way. In another word, what's the advantage of Logic-less template? ...

Iterating over arrays with mustache

How do I obtain a reference to the current element in the iteration? {{#my_array}} <p>{{__what_goes_here?__}}</p> {{/my_array}} I hope I am just overlooking the obvious. ...