mithril-route-render
use mithril routes with express
installation
npm install mithril-route-render
usage
;;// use a mock DOM so we can run mithril on the serverbrowserMockglobal;;routeRenderroutes, "/route", "/default-route".then;
see also
- mithril.js to get know what is mithril
- mithril-render to see what's behind the hood