Isomorphic Routing Helpers
Provides middleware to be used agnostically with either page.js, or with
express (through middleware adapters found in server/). Since some of the
middleware needs to function differently on the server than on the client,
both versions are provided transparently in those cases (by index.web.js and
index.node.js, respectively.)
These middlewares include:
makeLayout: creates aLayout(orLayoutLoggedOut) component incontext.layout. Acceptsprimaryandsecondaryarguments which it will use to populate the corresponding<div>s.clientRouter: Essentially an alias forpage, which invokes a client-siderendermiddleware after all other middlewares.