cursive
cursive copied to clipboard
Support HTML to Fulcro HTML on paste
Cursive supports converting HTML to Hiccup on paste. Would it be possible to have the same thing for Fulcro's HTML? There is a functions that does the job at Developers Guide -- https://book.fulcrologic.com/#_converting_html_to_fulcro that converts
Edge cases
The function from developer's guide transforms to shorthand notation for class names, which is sometimes problematic with class names that have /
.
HTML
<div class="flex flex-row">
<div class="basis-1/4">01</div>
<div class="basis-1/4">02</div>
<div class="basis-1/2">03</div>
</div>
Fulcro
(dom/div
:.flex.flex-row
(dom/div :.basis-1/4 "01") ; invalid keyword
(dom/div :.basis-1/4 "02") ; invalid keyword
(dom/div :.basis-1/2 "03")) ; invalid keyword
Therefore it would be nice to have the same checkbox as for Hiccup:
- [ ] Use shortcuts for class/ID
