garden
garden copied to clipboard
Interested: comparison with pre-processors
From a vantage point of selling-points, what are some of the plusses and minuses of garden vs. say, SCSS? The first thing in the README is "see what happens when you trade a preprocessor for a full language"; what does that actually mean? For example, things like "lighten" are already there in preprocessors. I adore garden and would like a good comparison.
From my very limited experience the possible advantages are just to do with the fact that you just manipulate Clojure data structures, so instead of having to deal with crappy half languages in pre-processors, you can use the full power of Clojure.
In theory this could even allow you do smart things like extra sanity checks, or more dynamic CSS generation.
You can also use most of the api from Clojurescript; which means you can generate styles based on your app-state.
There is a nice article here https://blog.estimate-work.com/a-new-world-writing-css-in-clojurescript-and-life-after-sass-bdf5bc80a24f with some more information.
Excellent points; thanks!