Skip to content

aoughwl/html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html

Typed HTML5 for nimony / Nim 3.0 — a registry of every HTML5 element and its attributes (void / deprecated / experimental markers), plus a document-tree builder and a correct, escaping, void-aware renderer. Pure logic, standard library only, no dependencies.

📖 Full docs → aoughwl.github.io/docs/html

import html

isAttribute("a", "href")   # true
isAttribute("div", "href") # false
echo $el("a", @[attr("href", "/x?a=1&b=2")], @[text("go & see <it>")])
# <a href="/x?a=1&amp;b=2">go &amp; see &lt;it&gt;</a>

About

Typed HTML5 for nimony: a registry of every HTML5 element and its attributes (void/deprecated/experimental), a document-tree builder, and a correct escaping, void-aware renderer. Pure stdlib, no deps.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages