(λ. borkdude) on Nostr: HTML literal expressions in #squintcljs, what do you think, good idea? (let [x 1] ...
HTML literal expressions in #squintcljs, what do you think, good idea?
(let [x 1] #html [:div "hello " x]) =>
const x = 1; `<div "hello" ${x}>`
Published at
2023-12-05 18:54:00Event JSON
{
"id": "287087e5c5433ca387212b5409b10ed5afcec147d0042c9f39f5ff11025549b1",
"pubkey": "c4ef83416f079257f5390f7d55a65e684d1b498d196e0e71bb8b90e21a820e07",
"created_at": 1701802440,
"kind": 1,
"tags": [
[
"t",
"squintcljs"
],
[
"t",
"html"
],
[
"proxy",
"https://mastodon.social/users/borkdude/statuses/111529324754738110",
"activitypub"
]
],
"content": "HTML literal expressions in #squintcljs, what do you think, good idea? \n\n(let [x 1] #html [:div \"hello \" x]) =\u003e\nconst x = 1; `\u003cdiv \"hello\" ${x}\u003e`\n\nhttps://files.mastodon.social/media_attachments/files/111/529/324/594/611/834/original/8b163ebd3a3a942a.png",
"sig": "a0fd49fdd028798c10773b1c2d4c58a397375ee7e7dd159b30211023da20dfb3d03f11f5271100c3a3deb137b9e43137024ebc87788c439b5d1cbf3c5769f015"
}