Fork me on GitHub
#garden
<
2018-03-19
>
oVerde19:03:41

So, beginner question here

oVerde19:03:25

How exactly to use graden? Will it output .css?

oVerde19:03:36

The syntax is easy

oVerde19:03:56

got everything right with REPL etc.

niamu19:03:20

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.

niamu19:03:11

Or if you have a Clojure web server, you can create a route that will generate and serve the compiled CSS on demand.

oVerde19:03:27

:thinking_face:

oVerde19:03:44

Great! The Clojure route is something I didn’t thought

niamu20:03:27

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.