JSideris / DOThtml

A human-friendly way to build highly-dynamic web pages in pure JavaScript.
2 stars 4 forks source link

Make everything callable, and obsolete dot.h. #140

Closed JSideris closed 5 months ago

JSideris commented 1 year ago

Rather than using dot.h to render components and HTML, get rid of it, and just make everything callable.

So to add a component after a div, you could do:

dot.div()(myComponent)

Or to render the component at a target:

dot("#target")(myComponent)

JSideris commented 5 months ago

Cool idea but too much of a pain to build. The existing solution of .text, .html, .mount (newly added), etc work.