Skip to content

Instantly share code, notes, and snippets.

@shu0115
Created November 14, 2014 04:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shu0115/0d46a1c997a7b7648b7b to your computer and use it in GitHub Desktop.
Save shu0115/0d46a1c997a7b7648b7b to your computer and use it in GitHub Desktop.
Tasks = new Mongo.Collection("tasks");
if (Meteor.isClient) {
// This code only runs on the client
Template.body.helpers({
tasks: function () {
return Tasks.find({});
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment