calibre has a viewer that can handle: EPUB, LIT, MOBI, HTML. The rendering is done using the webkit engine, so it handles HTML+CSS+javascript perfectly.
At the moment it isn't optimized for small memory devices, but it should be a good place to start.
|