r/Clojure • • Aug 21 '20

TIL Cursive will convert HTML into Hiccup when you copy-paste

Post image
101 Upvotes

7 comments sorted by

20

u/robertstuttaford Aug 21 '20

2

u/SimonGray Aug 21 '20

Awesome. I was considering giving Emacs a spin again.

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

u/pavelklavik Aug 21 '20

This feature is very awesome and I am using it frequently :).

1

u/_d_t_w Aug 22 '20

Wonderful isn't it! Cursive is a superb tool.

1

u/rberger Aug 22 '20

What we really need is an easy way to convert JSX / React into reagent / hiccup