FunBook is a framework helping you build websites really fast.

Briefly speaking, it gives you the UI, you fill it with the contents.

Let’s learn by example:

const book = new FunBook . default ( { title : 'My Awesome Book' , nav : [ { title : 'Home' , path : '/' } ] } ) book . page ( { title : 'Home' , path : '/' , content : 'Home Page' } ) book . chapter ( { title : 'Intro' , content : '<strong>My first chapter</strong>' } ) book . open ( '#root' , { routerMode : 'hash' } )

Try it on JSFiddle.

Which is worth noting, the content property supports following types of values: