layout.js 323 B

1234567891011121314151617181920
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 31/08/15
  7. * Time: 08:31
  8. */
  9. Template.layout.helpers({
  10. pageTitle: function () {
  11. var title = Session.get('pageTitle');
  12. Meteor._debug(title);
  13. if (title == undefined) {
  14. title = 'Microscope';
  15. Session.set('pageTitle', title);
  16. }
  17. return title;
  18. }
  19. });