Skip to content
/ brepl Public
forked from ibdknox/brepl

The browser repl for ClojureScript

Notifications You must be signed in to change notification settings

mjg123/brepl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brepl

The Clojure Script REPL that uses a running browser as its execution context. This lets you run ClojureScript code to drive the browser...

Let the dom appending begin!

Requirements

  • You have to have ClojureScript on your machine and ready to use (you called script/bootstrap)
  • You have rlwrap installed (you can technically do without this if you modify ./brepl)

Usage

Edit ./brepl to set your CLOJURESCRIPT_HOME, which is just the dir that ClojureScript in it.

lein deps
./brepl

Then just open the included index.html in a browser that supports websockets (only tested in chrome so far). Results are printed to the browser's console, so make sure you have it open.

Notes

ClojureScript doesn't have a (require) function in cljs.core, so I've implemented one for brepl, which I can't guarantee will act the same as (ns some-ns (:require ...)), though I haven't seen any differences.

License

Copyright (C) 2011 Chris Granger

Distributed under the Eclipse Public License, the same as Clojure.

About

The browser repl for ClojureScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published