So, beginner question here
How exactly to use graden? Will it output .css?
The syntax is easy
got everything right with REPL etc.
garden.core/css
is the function that outputs a string of compiled CSS. You can optionally spit
that to an external file where your web server will serve it.
Nice!
Or if you have a Clojure web server, you can create a route that will generate and serve the compiled CSS on demand.
:thinking_face:
Great! The Clojure route is something I didn’t thought
Thanks!
You’re welcome. Having the route serve the CSS compiled from Garden on demand is just a neat way of avoiding having an external asset that you always need to be updating. It’s especially helpful in development when you want changes to be reflected on refresh of the page without the need of having to spit
the file again.
Awesome @niamu