Home

Awesome

Examples that uses panas.reload

Initially these are examples for panas.reload, now this has become where I experiment all sort of things with clojure(babashka) and htmx

Prerequisite

install babashka

quick babashka installation

bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)

How to use

bb --config <any-project-dir>/bb.edn panas.reload

for example, running the project babashka-httpkit

bb --config babashka-httpkit/bb.edn panas.reload

What each project directory is

babashka-httpkit is an example project that:

babaskka-file-server is an example project that extend babashka/http-server to serve static files with live reload. You can also uses the bbin alternative to serve static files

Why not Hiccup?

Hiccup is one of HTML data representation in Clojure. I think almost everwhere where there is html and Clojure together, hiccup is the one that is used. However, the reason why this project does not use it because:

So, currently I know more about dealing with hiccup and probably will use more hiccup in my projects. I want to convert babashka-httpkit to using hiccup as well in the future, but leaving the one using html intact. I had received some advice that in some projects that might involve non-clojure people, using html might makes more sense because html is more familiar and more supported in terms of tooling. So, there will be two identical project but one uses html and the other uses hiccup.