Express/Connect middleware for DoneJS applications
Simple Express/Connect middleware for server-side rendering your DoneJS application.
npm install done-ssr-middleware
Use the middleware to add server-side rendering to an existing Express server:
var ssr = ;app;
The middleware includes a live-reload utility that can automatically refresh the cache for server-rendered responses. Use the
liveReload option to enable this feature:
Note: Make sure the ssr middleware is the last middleware in the chain but before the error handler. Errors when rendering the application will be passed to your Express error handler. Error status codes (e.g. 404s or others) will be rendered with the application.