Skip to content

Instantly share code, notes, and snippets.

@misutowolf
Created August 20, 2014 15:16
Show Gist options
  • Select an option

  • Save misutowolf/b9157bdc8eebb4c70f72 to your computer and use it in GitHub Desktop.

Select an option

Save misutowolf/b9157bdc8eebb4c70f72 to your computer and use it in GitHub Desktop.
this.route('browse-class', {
path: '/browse/:class',
data: function() {
"class": this.params.class,
numBooks: Books.find({"class": this.params.class},{sort:{"createdAt": 1}}).count(),
books: Books.find({"class": this.params.class},{sort:{"createdAt": 1}})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment