Open tunnckoCore opened 7 years ago
I just feel that the stuff is would go more crazy and crazy, when publish rollup-plugin-jstransformer
. Just imagine UI lib based on Rollup and JSTransformers. It will be abled to compile chika/mich-h
components with rollup through JSTransformer. Kinda what svelte
does, haha.
https://github.com/tunnckoCore/mich-to-html
Just tiny and naive implementation of virtual dom to html string. I think is pretty enough. I'll going to add self-closing tags support soon. It is just a matter of few lines.
Using https://github.com/tunnckoCore/mich-h you can create HAST-compliant virtual trees. Then passing it to
mich-to-html
you get a HTML string. You can also write JSX instead ofhyperscript
compatible syntax if you use the jsx pragma. Actuallymich-h
is fully compatible withhyperscript
and even have a bit better parsing of css selectors (the first argument) throughmich-parse-selector
or without breaking the javascript
All
mich
related things are just part of the upcoming chika (readme isn't real, just scaffolded it to see how it would look :) badges aren't real, nor examples)