How to get the result of a Meteor.call function in a template
问题 I'm trying to make a pagination function for use in a Meteor client. Therefore I need to know the record count on the server. On the server (in server/bootstrap.coffee) I have this code: Meteor.methods ContactsCount: -> Contacts.find().count() console.log("Totalrecords: " + Contacts.find().count()) The server part is called (it displays the correct number on the console - 40) On the client I have: $.extend Template.pager, GetRecordCount: -> Meteor.call("ContactsCount", (error,result) ->