Inspiration from Contentful and Netlify
The Contentful and Netlify combination has become a popular architecture for web development. This is for good reason as each of these have solved their respective problems in a powerful way. Contentful has made content easy to configure and produce. It is flexible enough to create a wide array of schemas and has easy to use API's no matter what platform on which you are developing. On the other side it has made this content easy to create with clean customizable interfaces.
Netlify has similarly solved the problem of web hosting in a powerful way with HTTPS by default, global CDN, and continuous integration. Combined with Github code hosting and Contentful connected build code this creates a powerful architecture to build apps and websites on.
For these reasons I have fallen in love with Lit-html for creating dynamic UI's in the browser. However very often I prefer the JAMstack approach to web development. Render your UI at build time and when content changes, and deliver the pre-rendered HTML to the browser. For this I wanted a static site generator built with lit-html, and so I set out to create it.
To start I needed to render lit-html from NodeJS. Based upon recent conversations on the lit-html Github repository it looks like this might soon be available. In the meantime I am relying on popeindustries/lit-html-server for using lit-html templates in Node. I then used this to create both a static site generator and server that would render a specially formatted source directory where JS files export a function which takes an Orison context object and returns a lit-html template. Some are pages that get inserted into the nearest layout, others are partials that can be reused anywhere. All of this is explained in the OrisonJS documentation.