using the plugin at http://paginationjs.com/
Note you’ll need a data source for this whole process to work. here mine ;
var allUsers = Meteor.users.find().fetch();
function toSingleUser(allUsers) {
$.each(data, function (index, item) {
html += Blaze.toHTMLWithData(Template.userBox, item) //
});
return html
}
$('#whereyouwanto').pagination({
dataSource: Meteor.myusers.find().fetch() ;// or allUserx
, callback: function (data, pagination) {
var html = toSingleUser(data)
$('#anything').html(html);
}
})