The billstclair/elm-html-template package allows you to generate HTML from JSON templates and dictionaries to fill in variables in the templates.
One of the problems I find with Elm is that the HTML is compiled into the JavaScript code for a web site. This package is the basis of a much more data-driven HTML generation mechanism.
The included example application is live at lisplog.org/elm-html-template.
The package contains a Markdown to JSON converter, with some extensions (colspan for tables and an elegant way to specify the CSS classes for tags). Full documentation of the JSON format and the Markdown processor is in the GitHub repository.
I'm working on Xossbow (pronounced "Crossbow"), a blogging package based on elm-html-template. The example code in this package uses JSON to represent its page content. Xossbow will use primarily Markdown.
Bill St. Clair <billstclair@gmail.com>
3 March 2017