diff --git a/skooma.js b/skooma.js index 81332bb..ce3c77d 100644 --- a/skooma.js +++ b/skooma.js @@ -1,3 +1,15 @@ +/* +A functional HTML generation library. + +Example: + html.label( + html.span("Delete everything", {class: ["warning", "important"]}), + html.button("Click", {onClick: e => document.body.innerHTML=""}), + ) +or + html.ul([1, 2, 3, 4, 5].map(x => html.li(x)), {class: "numbers"}) +*/ + const parseAttribute = (attribute) => { if (typeof attribute == "string" || typeof attribute == "number") return attribute