Using virtual-hyperscript, this module provides the base html used in flatsheet projects.
Hey, this is really just for flatsheet stuff. You most likely won't benefit from it at all. But if you appreciate the approach, feel free to fork or copypasta this code around.
This module is used along with the flatsheet-base-css module to create the most basic of page layout and default styles.
npm i --save flatsheet-base-html
var views = require('flatsheet-base-html')
var header = views.header({ children: [views.mainNav()] })
var footer = views.footer({ children: [views.socialNav()] })
var layout = views.layout({ body: [header, footer] })
layout.toHTML()
See the tests for more examples.