Separated client main.html with the layout.html in order to use iron-router. Set up the layoutTemplate and the route for / with postsList via the yield helper.