Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 442 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 442 Bytes

HTML Render

HTML-as-code in plain CoffeeScript (or JavaScript, of course). Based on the excellent diffHTML library behind the scenes.

import {HTML} from "../src/index"
{render, html, body, h1} = HTML

assert.equal "<html><body><h1>Hello, World!</h1></body></html>",
  render html [
    body [
      h1 "Hello, World!"
    ]
  ]

Installation

npm i @dashkite/html-render