Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Created May 15, 2011 21:55
Show Gist options
  • Save pdeschen/973590 to your computer and use it in GitHub Desktop.
Save pdeschen/973590 to your computer and use it in GitHub Desktop.
mustache.js rendering
render : function(view, model, callback) {
cst.model = model;
cst.view = view;
try {
var html = Mustache.to_html(view, model);
callback.call(this, html);
} catch (error) {
onError('Error while rendering template.');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment