I had originally done this as a set of template files, but found that a small JS library was more reusable. Basically, it will render HTML pages from Markdown files using only client-side JavaScript (AJAX requests, Showdown JS) unlike traditional static site generators that use a build process.