Liking cljdoc? Tell your friends :D

hiccup-templating.core.parser


hiccup-xhtml-streamclj

(hiccup-xhtml-stream hiccup-ds)
(hiccup-xhtml-stream hiccup-ds opts)

Renders hiccup-ds as XHTML 1.0 strict and returns an OPEN java.io.ByteArrayOutputStream holding the UTF-8 encoded bytes. The internal writer is closed (flushing its buffer into baos), but baos itself is left open so callers can .toString, .toByteArray, or write additional bytes into it. Callers that need to release the buffer should call .close themselves.

The 1-arity call passes {:escape-strings false} so pre-built HTML fragments in the tree survive the render - intended for the flying-saucer PDF pipeline with a trusted data map. Callers that need escaping (any HTML sink with untrusted data) should either supply opts explicitly or use the -escaped variants in hiccup-templating.core.

Renders `hiccup-ds` as XHTML 1.0 strict and returns an OPEN
`java.io.ByteArrayOutputStream` holding the UTF-8 encoded bytes.
The internal writer is closed (flushing its buffer into `baos`),
but `baos` itself is left open so callers can `.toString`,
`.toByteArray`, or write additional bytes into it. Callers that
need to release the buffer should call `.close` themselves.

The 1-arity call passes `{:escape-strings false}` so pre-built HTML
fragments in the tree survive the render - intended for the
flying-saucer PDF pipeline with a trusted data map. Callers that
need escaping (any HTML sink with untrusted data) should either
supply `opts` explicitly or use the `-escaped` variants in
`hiccup-templating.core`.
sourceraw docstring

hiccup-xhtml-stringclj

(hiccup-xhtml-string hiccup-ds)
(hiccup-xhtml-string hiccup-ds opts)

Renders hiccup-ds as XHTML 1.0 strict and returns the result as a string.

The 1-arity call passes {:escape-strings false} so pre-built HTML fragments in the tree survive the render - intended for the flying-saucer PDF pipeline with a trusted data map. Callers that need escaping (any HTML sink with untrusted data) should either supply opts explicitly or use the -escaped variants in hiccup-templating.core.

Renders `hiccup-ds` as XHTML 1.0 strict and returns the result as a
string.

The 1-arity call passes `{:escape-strings false}` so pre-built HTML
fragments in the tree survive the render - intended for the
flying-saucer PDF pipeline with a trusted data map. Callers that
need escaping (any HTML sink with untrusted data) should either
supply `opts` explicitly or use the `-escaped` variants in
`hiccup-templating.core`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close