hickory.render documentation

hiccup-to-html

(hiccup-to-html hiccup-forms)
Given a sequence of hiccup forms (as returned by as-hiccup), returns a
string containing HTML it represents. Keep in mind this function is not super
fast or heavy-duty, and definitely not a replacement for dedicated hiccup
renderers, like hiccup itself, which *is* fast and heavy-duty.

Note that it will NOT in general be the case that

  (= my-html-src (hiccup-to-html (as-hiccup (parse my-html-src))))

as we do not keep any letter case or whitespace information, any
"tag-soupy" elements, attribute quote characters used, etc. It will also
not generally be the case that this function's output will exactly match
hiccup's.

hickory-to-html

(hickory-to-html dom)
Given a hickory HTML DOM map structure (as returned by as-hickory), returns a
string containing HTML it represents. Keep in mind this function is not super
fast or heavy-duty.

Note that it will NOT in general be the case that

  (= my-html-src (hickory-to-html (as-hickory (parse my-html-src))))

as we do not keep any letter case or whitespace information, any
"tag-soupy" elements, attribute quote characters used, etc.