website_list.js 264 B

123456789101112
  1. /**
  2. * Client code for the website_list template.
  3. */
  4. // Helper function that returns all available websites
  5. Template.website_list.helpers({
  6. websites: () => {
  7. return Websites.find({}, {
  8. sort: { plusScore: -1, minusScore: 1, title: 1 }
  9. });
  10. }
  11. });