paypal / react-engine

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views
Apache License 2.0
1.45k stars 130 forks source link

Does react-engine support multiple route files? #76

Closed qsjiang closed 9 years ago

qsjiang commented 9 years ago

Inside the example app https://github.com/paypal/react-engine/blob/master/examples/complex/index.js

var engine = renderer.server.create({
  routes: require(path.join(__dirname + '/public/routes.jsx')),
  routesFilePath: path.join(__dirname + '/public/routes.jsx')
});

It looks like you can only have one route file configured with the react-engine. Is there a way for react-engine to support multiple route files inside the same project?

Thanks!

samsel commented 9 years ago

@qsjiang not at the moment, it doesn't support multiple files. all routes need to be packaged into a single definition.