posts_list.js 188 B

1234567891011121314
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 30/08/15
  7. * Time: 10:07
  8. */
  9. Template.postsList.helpers({
  10. posts: function () {
  11. return Posts.find({}, { sort: { submitted: -1 }});
  12. }
  13. });