Liking cljdoc? Tell your friends :D

inertia.html


bodyclj

(body page-json id)

Script element followed by the empty root element the client mounts into.

Script element followed by the empty root element the client mounts into.
sourceraw docstring

escape-attrclj

(escape-attr s)
source

escape-jsonclj

(escape-json json)

Makes a JSON string safe inside a <script> element. Only characters that can appear inside JSON strings are rewritten, as \u escapes, which the browser leaves alone and JSON.parse decodes. HTML entities would not work here: a browser does not decode them inside <script>.

Makes a JSON string safe inside a <script> element. Only characters that
can appear inside JSON strings are rewritten, as \u escapes, which the
browser leaves alone and JSON.parse decodes. HTML entities would not work
here: a browser does not decode them inside <script>.
sourceraw docstring

page-scriptclj

(page-script page-json id)

The v3 initial-page element: a JSON script whose data-page names the root id.

The v3 initial-page element: a JSON script whose data-page names the root id.
sourceraw docstring

root-divclj

(root-div id)
source

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