cherry

2024-09-13T15:57:33.842779Z

This works: #html [:span {:class "test"} title], but dynamic code like just having {:class "test"} in a variable doesn't. I have some code that merges attributes and it doesn't work. Is it expected to work?

2024-09-13T15:58:05.106499Z

I saw documentation for that hiccup somewhere in the squint repo but cannot find it now.

borkdude 2024-09-13T16:07:00.152449Z

lemme check, I think I have some tests for this

borkdude 2024-09-13T16:09:53.439249Z

so if you just want to pass the map, write {:& the-map}

👍 1
2024-09-13T16:10:22.013299Z

Great, thanks!

2024-09-13T16:10:40.845619Z

I have seen these things described somewhere, I thought it was the README, but it's not there now.

2024-09-13T16:11:39.189759Z

Confirmed, it works!

borkdude 2024-09-13T16:16:08.156789Z

https://github.com/squint-cljs/squint?tab=readme-ov-file#html About the props: this is documented under JSX

2024-09-13T16:17:28.182089Z

Ah that's where I saw the props, right.

2024-09-13T16:17:38.491879Z

OK, all works now 🙂 Thank you 🙏

borkdude 2024-09-13T16:20:00.682829Z

woohoo :)

borkdude 2024-09-13T16:20:14.309149Z

I'll await your blog post about cherry ;)

2024-09-13T16:21:35.355309Z

I will publish the sources I have once I'll be less ashamed of it haha. It documents the process and it is a real-world example of a simple personal site made with Cherry and WebComponents. It's a small thing, but I think real world examples are really important.

❤️ 1