garden

oVerde 2018-03-19T19:54:41.000607Z

So, beginner question here

oVerde 2018-03-19T19:55:25.000070Z

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

oVerde 2018-03-19T19:55:36.000091Z

The syntax is easy

oVerde 2018-03-19T19:55:56.000056Z

got everything right with REPL etc.

niamu 2018-03-19T19:57:20.000245Z

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.

oVerde 2018-03-19T19:57:58.000297Z

Nice!

niamu 2018-03-19T19:58:11.000679Z

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

oVerde 2018-03-19T19:58:27.000111Z

:thinking_face:

oVerde 2018-03-19T19:58:44.000165Z

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

oVerde 2018-03-19T19:58:51.000535Z

Thanks!

niamu 2018-03-19T20:00:27.000644Z

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
oVerde 2018-03-19T20:01:22.000248Z

Awesome @niamu