Fork me on GitHub
#garden
<
2024-02-08
>
pez07:02:02

Is Garden still being maintained? I’m considering it for a project, and I see no reason the current version won’t work, but also CSS is moving pretty fast these days, so at times this library may need some updates. Or should I worry at all? What say you people who are using it?

chromalchemy15:02:00

I’m not an expert, but my impression is since Garden is ultimately just generating CSS strings, it is maybe not too hard to extend as needed for new CSS syntax. Not sure about creating new macros like defselector, defclass, defid, defpseudoclass defpseudoelement , based on protocols. But I think you can just use strings inline with formal selectors and keywords in a Garden rule definition. Like [:div "div:hover" g/blockquote] This allows a form of transparent interop with novel CSS syntax.

chromalchemy15:02:12

Is Garden any less evergreen than Hiccup? (same idea: templating strings with data structures)

pez15:02:27

Good point. Though, it seems that SGML is a bit more general as standard, and it is about as syntax-less as LISP is. And SGML is basically what Hiccup deals with.

pez15:02:29

I think your general point is super valid. I will act on that one. 😄 Thanks!

noprompt14:04:24

@U0ETXRFEW Sorry for taking 2 months to reply! I am currently not maintaining any of my Clojure projects since I am not working with it at my day job.

pez15:04:03

Hi, @U06MDAPTP! Garden is super duper awesome. I followed @U09D96P9B’s wisdom and just used it. Super happy I did. Thanks for providing!

👍 1
chromalchemy13:04:34

Thanks from me too. One giant step out of css tarpit.