HTML + validated CSS in one nimony block. A declarative DSL that builds a typed
HTML tree and, inline, validates every style declaration against the MDN grammar and
lowers each style: block to a single scoped class. Sits on top of html and css.
For nimony / Nim 3.0.
📖 Full docs → aoughwl.github.io/docs/web
import web
let page = web:
box:
style:
color: red
padding: 10.px 20.px
h1 "Hello, nimony"
echo render(page) # <div class="cc9ece13d"><h1>Hello, nimony</h1></div>
echo renderStylesheet() # .cc9ece13d{color:red;padding:10px 20px}