by CraigJPerry · 4y ago · 0 comments
$ npx nbb -e (println "Hello, world")
Need to install the following packages:
nbb
Ok to proceed? (y)
Hello, world
Or more comprehensively: https://clojurescript.org/guides/quick-startIf you want to do frontend development, you can give shadow-cljs a try, the quickstart is pretty quick: https://github.com/thheller/shadow-cljs#quick-start
If you want to just render server-side HTML, something like compojure (HTTP routing) and hiccup (Clojure data -> HTML) is pretty easy and quick to get started with (https://gist.github.com/zehnpaard/2071c3f55ed319aa8528d54d90...).
If you want to generate HTML files to serve with nginx/whatever, you can just use hiccup and `(spit)` the resulting HTML to files on disk.