Hacker News new | ask | show | jobs
by CraigJPerry 1476 days 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
1 comments

Your example is missing anything actually related to rendering a webpage.
Unclear 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

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.