A PureScript wrapper of lit-html.
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" }
cd example
yarn
spago build -w
yarn start