garden 2018-03-19

@overde has joined the channel

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.

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

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

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.

🦜 1