Hey, I am trying to use #html to generate importmap :
(str #html [:script {:type "importmap"}
(js/JSON.stringify {"imports" {"squint-cljs" ""}})])
=> "<script type=\"importmap\">{"imports\":{\"squint-cljs\":\"\"}}</script>"
The output escaped first \" . How can I have something like h/raw to generate importmap with #html?Use :$ as the tag name. If that doesnt work please file an issue
Thanks. I am not sure I understand the :$ correctly by setting it like:
(str #html [:$ {:type "importmap"}
(js/JSON.stringify {"imports" {"squint-cljs" ""}})])
=> "<$ type=\"importmap\">{"imports\":{\"squint-cljs\":\"\"}}</$>"
The result replaced script with $.Yeah sorry I need to implement this still. Issue welcome!