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.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"})
I personally just (str "" ...)
agreed. "the DOCTYPE declaration is not technically a tag." thanks, apologies.
We can always special case it. I think it might be a good idea. But you’ll need to provide a PR for that