r/Clojure • u/SimonGray • Aug 21 '20
TIL Cursive will convert HTML into Hiccup when you copy-paste
101
Upvotes
2
u/SimonGray Aug 21 '20
Thought this was interesting feature and hadn't noticed it till now. This is quite handy as it allows copy-pasting any kind of HTML/XML/JSX directly into your Clojure code.
4
u/therealdivs1210 Aug 21 '20
Wow, this is pretty nifty! I wonder if Clojure Mode an be made to do this.
2
1
1
u/rberger Aug 22 '20
What we really need is an easy way to convert JSX / React into reagent / hiccup
20
u/robertstuttaford Aug 21 '20
For the Emacs folks: https://github.com/plexus/html-to-hiccup