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"
  }
];

Posts.fastRenderSubscribe = function (view, params) {
  var subscriptionTerms = {
    view: view,
    limit: params.limit || Settings.get('postsPerPage', 10),
    enableCache: true
  };
  
  this.subscribe('postsList', subscriptionTerms);
  this.subscribe('postsListUsers', subscriptionTerms);
};

Meteor.startup(function () {
  Posts.fastRenderRoutes.forEach(function (route) {
    FastRender.route(route.path, _.partial(Posts.fastRenderSubscribe, route.path));
  });
});
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"
  }
];

Posts.fastRenderSubscribe = function (view, params) {
  var subscriptionTerms = {
    view: view,
    limit: params.limit || Settings.get('postsPerPage', 10)
  };
};

Meteor.startup(function () {
  Posts.fastRenderRoutes.forEach(function (route) {
    FastRender.route(route.path, _.partial(Posts.fastRenderSubscribe, route.view));
  });
});
fix stupid bug (route.path -> route.view)