EloquentStudio / StreamTable.js

StreamTable.js streams data for tables in the background, updates and renders them using templating frameworks like Mustache.js, HandleBars.js
http://eloquentstudio.github.io/StreamTable.js/stream.html
MIT License
385 stars 77 forks source link

Mustache.compile is not a function (from README) #20

Closed jeremywadsack closed 9 years ago

jeremywadsack commented 9 years ago

In the README is says:

var template = Mustache.compile($.trim($("#template").html()));

var view = function(record, index){
  return template({record: record, index: index});
};

However, the method on current Mustache is parse. There are other changes to how Mustache works too:

var template = $.trim($("#template").html());
Mustache.parse(template);

var view = function(record, index){
  return Mustache.render(template, {record: record, index: index});
};

Since Mustache.js 0.8.0 / 2 Dec 2013

jiren commented 9 years ago

Thanks @jeremywadsack . Updated README.