-
-
Save ds604/2bc6a244221bc9a2a9192f58d0c8c615 to your computer and use it in GitHub Desktop.
A minimum setting to use browser REPL of ClojureScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script type="text/javascript" src="/js/repl-test.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defproject repl-test "0.1.0-SNAPSHOT" | |
| :plugins [[lein-cljsbuild "0.3.2"]] | |
| :cljsbuild { | |
| :builds [{ | |
| :source-paths ["src"] | |
| :compiler { | |
| :output-to "js/repl-test.js" | |
| :optimizations :whitespace | |
| :pretty-print true}}]}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns repl-test | |
| (:require [clojure.browser.repl :as repl])) | |
| (repl/connect "http://localhost:9000/repl") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment