garden

pez 2024-02-08T07:49:02.124069Z

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?

πŸ‘€ 1
chromalchemy 2024-02-12T15:20:00.024319Z

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.

chromalchemy 2024-02-12T15:20:12.922379Z

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

pez 2024-02-12T15:32:27.967329Z

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.

pez 2024-02-12T15:33:29.600469Z

I think your general point is super valid. I will act on that one. πŸ˜„ Thanks!

chromalchemy 2024-04-18T13:34:34.394689Z

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

noprompt 2024-04-16T14:39:24.242369Z

@pez 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.

pez 2024-04-16T15:04:03.000139Z

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

πŸ‘ 1