Clojurescript namespace update

I am using lein cljsbuild and want to find a way to reload my compiled file without refreshing the browser. Is there a built-in way to do this from my browser related to the REPL?

+3


source to share


1 answer


Using browser-repl you can get most of what I think you are asking for. On the site:

A browser-connected REPL works in much the same way as a normal REPL: 
forms are read from the console, evaluated and return values are printed. 
A major and useful difference from normal REPL usage is that 
all side-effects occur in the browser.

      



This loads the page and then makes the page wait for commands from repl. This way, when you reload the buffer, the page will change to match.

+1


source







All Articles