Create RouteController for postsList
- Named PostsListController which is an extension of the RouteController class
Add postsList template to PostsListController
- Add the postsList template so the controller knows which view to render
Add pagination limit to PostsListController
- RouteController now has a pagination limiter of 5
Add limit function to PostsListController
- PostsListController will set the limit based on the parameter
- If no integer is passed into the query string parameter, then the default limit if set to 5 in the increment variable
Add findOptions function for returning paginated posts results
- Function will return the most recent posts because of the submitted sorting parameter
- Function will only return the set limit of posts per request
- Returns a set of the most recent paginated posts
Add subscription to Posts in PostsListController
- Subscription to Posts is called in waitOn function
- Subscription to Posts will use findOptions as a parameter
- This will return a limited number of recent posts in the postList route
Add data variable
- Add data which is a functino that returns a set of Posts
- Set of posts uses the findOptions function to return a limited number of recent posts
Add controller property to postsList route
- Specify PostsListController as controller in postsList route
- Remove unnecessary javascript functions which are now encapsulated in new RouteController
Merge pull request #34 from alexanderdavidpan/Refactor_postsLists_Route_Into_A_RouteController

Refactor posts lists route into a route controller