r/Clojurescript • • Jan 01 '22
Compile a small clojurescript snippet?
I built a small static personal website using clojure (perun, boot, hiccup, garden). While I mostly stuck with keeping everything as simple HTML and CSS, I want to add a few lines of javascript for an optional function.
While the simplest option would be to just write the javascript by hand and then link it to the page, I'd like to compile it from clojurescript if possible. All sources I've seen are mostly about using clojurescript for single page apps though, is it possible to compile a small script without any frameworks or anything?
5
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jan 01 '22
Well, should have tried before I asked. Just adding a
(cljs)task was enough, thanks.