A Gitbook plugin for running a ClojureScript REPL inside Gitbook
npm install gitbook-plugin-clojurescriptGitBook Plugin - REPL
==============
This is a Gitbook Plugin that allows you to embed a REPL right in your Gitbook! This plugin powers the Clojure REPL used in writing the [Clojure By Example]() guide.
!img
The plugin uses the awesome open-source jqConsole for embedding a terminal.
For Clojure you can just fork the Try Clojure project and host it on Heroku. The plugin can then be customized to use your custom heroku app.
Note: You will need to customize the Try Clojure noir app so that it can accept cross-domain requests.
javascript
{
"plugins": ["repl"],
"pluginsConfig": {
"repl": { "URL": "http://example-herokuapp.com/eval" }
}
}
``