(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.
(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>.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |