I'd like to use ClojureScript to make a "single page" style web app. To that end, I need a client-side templating system. Does anyone have any experience and/or recommendations on which ClojureScript templating systems I should look into? Thanks.
you might have a look at dommy, a templating system written/used by Prismatic.
I've found crate to be helpful.
Having used both Crate and Dommy I can say that they are both very good. Crate is just an implementation of Hiccup from Clojure converted to Clojurescript for templating, so you will still need to use Domina to select elements. If you want a framework that handles both DOM selection AND templating then use Dommy
I know three templating flavors for Clojurescript:
There are libraries that produce React DOM nodes instead of normal DOM nodes but work in the same way as those mentioned above:
I know you are only asking for templating and React comes with more than that, but if you need anything besides the most basic operations, I would recommend any React based approach.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With