Skip to content

aoughwl/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web

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}

About

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, lowering each style block to a single scoped class. Sits on html + css.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages