epub.js
epub.js copied to clipboard
Server side rendering
Would it be possible to render the book on the server-side in Node so that clients can consume the book without need for JavaScript?
I am working on a project that injects semantic web markup like RDFa/microdata into epubs to make them machine readable. The consuming machines usually have no JavaScript support. At the same time it would be very useful to have a good user experience for human consumers too, which is why I'm interested in Epub.js.
So the navigation doesn't need to work without JavaScript but the augmented page contents would need to be rendered on the server-side.
Have you had any success doing server-side rendering with node.js?
This would be great because it means the book could essentially be loaded exclusively as .html chapter-by-chapter instead of downloading the entire .epub. More secure too, although could get expensive on the server.