Hi everyone, the other day I was here cause I thought I came up with a neat way of creating HTML via JavaScript [1] - After some iterations, I'm quite content with the code I wrote. Since I intend to use this in my personal projects, I thought others might as well.<p>1 - <a href="https://news.ycombinator.com/item?id=41451559">https://news.ycombinator.com/item?id=41451559</a>
I've recorded a short video showing a little bit of TinyJS if you're interested - <a href="https://www.youtube.com/watch?v=otz7sv_wpFA" rel="nofollow">https://www.youtube.com/watch?v=otz7sv_wpFA</a>
One of the comments the other day was "You have reinvented Hyperscript".<p>In case you didn't see it, they meant this [0] and also this [1].<p>I don't mean this as a critique or dismissal of your idea, but I think it's fair to prefer Hyperscript since it's well tested code and has a couple of additional features (like event handler support) without being much larger than your own code. Also, I think Hyperscript is more correct in the way they build the elements.<p>[0] <a href="https://github.com/hyperhype/hyperscript">https://github.com/hyperhype/hyperscript</a><p>[1] <a href="https://github.com/ohanhi/hyperscript-helpers">https://github.com/ohanhi/hyperscript-helpers</a>