You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some (edge) cases where tags need to be self-closing, but are not known as such to hiccup's void-tags list. Modifying the void-tags would be inelegant. Is there a way to specify a tag as self-closing in a hiccup tag vector - especially as a local override of that tag's rendering to HTML/XML?
In particular, with sitemaps using the hreflang specification, per https://support.google.com/webmasters/answer/2620865?hl=en one can see that <xhtml:link ... /> tags are self-closing. If dealing with an isolated tag vector, it's possible to specify :mode xml to produce the desired outcome:
There are some (edge) cases where tags need to be self-closing, but are not known as such to hiccup's
void-tags
list. Modifying thevoid-tags
would be inelegant. Is there a way to specify a tag as self-closing in a hiccup tag vector - especially as a local override of that tag's rendering to HTML/XML?In particular, with sitemaps using the
hreflang
specification, per https://support.google.com/webmasters/answer/2620865?hl=en one can see that<xhtml:link ... />
tags are self-closing. If dealing with an isolated tag vector, it's possible to specify:mode xml
to produce the desired outcome:A problem arises when
hic/html
is being called on a larger collection of tag vectors, most of which render as desired, but we want some local overrides for the links of[:xhtml:link ...]
See https://github.com/hashobject/sitemap and in particular https://github.com/hashobject/sitemap/blob/master/src/sitemap/core.cljAny solutions/suggestions? Thanks!
The text was updated successfully, but these errors were encountered: