Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created January 9, 2014 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sritchie/8343152 to your computer and use it in GitHub Desktop.
Save sritchie/8343152 to your computer and use it in GitHub Desktop.
(ns paddleguru.repl
"Helpers for interacting with Austin: https://github.com/cemerick/austin"
(:require [paddleguru.util :as u]))
(u/try-require 'cemerick.austin)
(u/try-require 'cemerick.austin.repls)
;; Use these to get the REPL running locally, connected to our live
;; server instance. For this to work you'll need to have started the
;; app from the repl itself.)
(defn start! []
(when-let [browser-repl-env (u/maybe-resolve cemerick.austin.repls browser-repl-env)]
(when-let [cljs-repl (u/maybe-resolve cemerick.austin.repls cljs-repl)]
(when-let [repl-env (u/maybe-resolve cemerick.austin repl-env)]
(cljs-repl (reset! browser-repl-env
(repl-env)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment