Vulcan/packages/telescope-posts/lib/server/fastrender.js

41 lines
939 B
JavaScript
Raw Normal View History

2015-09-17 14:51:14 +09:00
// Posts.fastRenderRoutes = [
// {
// path: "/",
// view: Settings.get('defaultView', 'top')
// },
// {
// path: "/top/:limit?",
// view: "top"
// },
// {
// path: "/new/:limit?",
// view: "new"
// },
// {
// path: "/best/:limit?",
// view: "best"
// },
// {
// path: "/pending/:limit?",
// view: "pending"
// },
// {
// path: "/scheduled/:limit?",
// view: "scheduled"
// }
// ];
2015-09-17 14:51:14 +09:00
// Posts.fastRenderSubscribe = function (view, params) {
// var subscriptionTerms = {
// view: view,
// limit: params.limit || Settings.get('postsPerPage', 10)
// };
// this.subscribe('postsList', subscriptionTerms);
// this.subscribe('postsListUsers', subscriptionTerms);
// };
2015-09-17 14:51:14 +09:00
// Meteor.startup(function () {
// Posts.fastRenderRoutes.forEach(function (route) {
// FastRender.route(route.path, _.partial(Posts.fastRenderSubscribe, route.view));
// });
// });