Vulcan/packages/telescope-core/lib/router/config.js

31 lines
881 B
JavaScript
Raw Normal View History

2015-09-17 14:51:14 +09:00
// Router.setTemplateNameConverter(function (str) { return str; });
2015-09-17 14:51:14 +09:00
// Telescope.subscriptions.preload('settings');
// Telescope.subscriptions.preload('currentUser');
2015-09-17 14:51:14 +09:00
// Router.configure({
// layoutTemplate: 'layout',
// loadingTemplate: 'loading',
// notFoundTemplate: 'not_found',
// waitOn: function () {
// return _.map(Telescope.subscriptions, function(sub){
// // can either pass strings or objects with subName and subArguments properties
// if (typeof sub === 'object'){
// Meteor.subscribe(sub.subName, sub.subArguments);
// }else{
// Meteor.subscribe(sub);
// }
// });
// }
// });
2015-09-17 14:51:14 +09:00
// Telescope.controllers = {};
Telescope.subsManager = new SubsManager({
// cache recent 50 subscriptions
cacheLimit: 50,
// expire any subscription after 30 minutes
expireIn: 30
});
2015-09-17 14:51:14 +09:00
Telescope.SEO = new FlowRouterSEO();