41 ms·
I don’t think it’s that $ npx nbb -e (println "Hello, world") Need to install the following packages: nbb Ok to proceed? (y) Hello, world
by CraigJPerry 4y ago
I don’t think it’s that
$ 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-start https://clojurescript.org/guides/quick-start
- deleted 4y ago[deleted]
- Deadron 4y agoYour example is missing anything actually related to rendering a webpage.
- capableweb 4y agoUnclear what "rendering a webpage" entails exactly. If 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 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/2071c3f55ed319aa8528d54d90f557e3 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.