cljs.repl.browser/default-index

functionsince v1.10.63Edit
(default-index output-to)

Source code @ clojurescript:src/main/clojure/cljs/repl/browser.clj
(defn default-index [output-to]
  (str
    ""
    ""
    ""
    ""
    ""
    ""
    ""
    "
" "" "" "
"
"

Welcome to the ClojureScript browser REPL.

"
"

This page hosts your REPL and application evaluation environment. " "Validate the connection by typing (js/alert \"Hello CLJS!\") in the REPL.

"
"

To provide your own custom page, place an index.html file in " "the REPL launch directory, starting with this template:

"
"
"
    "<!DOCTYPE html>\n"
    "<html>\n"
    "  <head>\n"
    "    <meta charset=\"UTF-8\">\n"
    "  </head>\n"
    "  <body>\n"
    "    <script src=\"" output-to "\" type=\"text/javascript\"></script>\n"
    "  </body>\n"
    "</html>\n"
    "
"
"
" "" ""))