Specialization of the generic compiler from fr.jeremyschoffen.prose.alpha.compilation.core
to compile to html.
Specialization of the generic compiler from [[fr.jeremyschoffen.prose.alpha.compilation.core]] to compile to html.
(attr-str x)
Like clojure.core/str but escapes < > & and ".
Like clojure.core/str but escapes < > & and ".
(compile! doc)
Compile a document (in data form) into html text.
Compile a document (in data form) into html text.
(emit-comment! node)
Emit an html comment passed in map form.
Emit an html comment passed in map form.
(emit-dtd! {[name public-id system-id] :data})
Emit a dtd passed in map form.
Emit a dtd passed in map form.
(emit-str! x)
Default emit-str for the HTML compiler. Uses xml-str
to escaped characters.
Default emit-str for the HTML compiler. Uses [[xml-str]] to escaped characters.
(emit-tag! {:keys [tag attrs content]})
Emits a html tag which is a map with the keys :tag
, :attrs
and :content
.
Emits a html tag which is a map with the keys `:tag`, `:attrs` and `:content`.
Html implementation of our generic compiler, this is meant to a binding to
fr.jeremyschoffen.prose.alpha.compilation.core
.
Html implementation of our generic compiler, this is meant to a binding to [[fr.jeremyschoffen.prose.alpha.compilation.core]].
(name-str n)
Return a string representation of a name (tag or attribute) in html.
Return a string representation of a name (tag or attribute) in html.
Html tag names of tags that are self closing.
Html tag names of tags that are self closing.
(xml-str x)
Like clojure.core/str but escapes < > and &.
Like clojure.core/str but escapes < > and &.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close