rum

miwal 2024-07-22T13:18:10.510319Z

New to Rum, using it for server side rendering without react. I am doing

[:! {:dangerouslySetInnerHTML {:__html "DOCTYPE html"}}]
which is rendering as DOCTYPE html but of course I want Have another way to do this (since it comes first I can concat it at the front of the render-static-markup, outside of rum), just wondering though.

miwal 2024-07-22T13:30:44.547609Z

I see void tags are handled of course, e.g [:br ] as
(def ^{:doc "A list of elements that must be rendered without a closing tag." :private true} void-tags #{"area" "base" "br" "col" "command" "embed" "hr" "img" "input" "keygen" "link" "meta" "param" "source" "track" "wbr"})

Niki 2024-07-22T13:32:47.530299Z

I personally just (str "" ...)

miwal 2024-07-22T13:40:22.087789Z

agreed. "the DOCTYPE declaration is not technically a tag." thanks, apologies.

Niki 2024-07-23T13:37:55.309909Z

We can always special case it. I think it might be a good idea. But you’ll need to provide a PR for that