Liking cljdoc? Tell your friends :D

hickory.render


hiccup-to-htmlclj/s

(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.

  (hiccup-to-html '([:html {} [:head {}] [:body {} [:a {} "foo"]]]))

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. For instance:

(hiccup-to-html (as-hiccup (parse "<A href=\"foo\">foo</A>")))
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.

```klipse
  (hiccup-to-html '([:html {} [:head {}] [:body {} [:a {} "foo"]]]))
```

   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.
   For instance:

```klipse
(hiccup-to-html (as-hiccup (parse "<A href=\"foo\">foo</A>")))
```
  
sourceraw docstring

hickory-to-htmlclj/s

(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.

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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close