Routing: IronRouter is recommended, and can I split the html?


#1

For websites using Meteor, is IronRouter the recommended router? https://github.com/iron-meteor/iron-router

I have been looking around IronRouter and it is unclear if you’re supposed to just throw all the various views into one big HTML file. I’d prefer to have something like

/views
  index.html
  faq.html
  contact.html
  _layout.html (this contains the header and footer and any other JS like Google Analytics)

Is there a good blog post or something I can read about this to learn more?


#2

It is a mater of taste and requirements. Although I still use Iron Router (for historical reasons), my advice is to not use it, cause it is an overly complex package with pending issues. Alternatives are: 1. no router 2. flow-router.


#3

Almost every bit of Meteor code I’ve seen in the wild uses iron-router. It’s even recommended in the Discover Meteor book. If you’re used to routing a-la Rails, then it’s highly recommended because you will feel at home and waste less time.


#4

Some more ref: