| ▲ | HexDecOctBin 4 days ago | |||||||
Can the metadata feature be used to ergonomically emulate HTML attributes? It's not clear from the docs, and the spec doesn't seem to document the feature at all. | ||||||||
| ▲ | nerdponx 4 days ago | parent | next [-] | |||||||
I'm not sure how the metadata syntax works, but you might not need it because you can do this: | ||||||||
| ▲ | delaguardo 3 days ago | parent | prev [-] | |||||||
I think you can use metadata to model html attributes but in clojure people are using plain vector for that. https://github.com/weavejester/hiccup tl;dr first element of the vector is a tag, second is a map of attributes test are children nodes: [:h1 {:font-size "2em" :font-weight bold} "General Kenobi, you are a bold one"] | ||||||||
| ||||||||