Package

purescript-lit-html

Repository
nonbili/purescript-lit-html
License
BSD-3-Clause
Uploaded by
rnons
Published on
2019-09-09T08:19:40Z

purescript-lit-html on Pursuit

A PureScript wrapper of lit-html.

Usage

import LitHtml as LitHtml
import Web.DOM (Element)

renderTitle :: Element -> Effect Unit
renderTitle el =
  tpl <- LitHtml.mkHtmlTemplate "<h1 id='title'>${title}</h1>"
  LitHtml.render el tpl { title: "new title" }

Development

cd example
yarn
pulp -w build -I ../src
yarn start
Modules
LitHtml
Dependencies