Skip to content
Turn JSON templates and dictionaries into Elm Html
Elm HTML CSS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
daring-fireball-markdown-syntax
examples
src
tests
.gitignore
.travis.yml
JSON.md
LICENSE.txt
Markdown.md
README.md
elm-package.json

README.md

The billstclair/elm-html-template package allows you to generate HTML from JSON templates and dictionaries to fill in variables in the templates.

Build Status

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

You can’t perform that action at this time.