klipse

README

Introduction

This plugin allows you to embed klipse: https://github.com/viebel/klipse in gitbook projects.

Klipse allows code snippets in your gitbooks to be live and interactive. The code is evaluated as you type or when you press Ctrl-Enter.

To enable this plugin add klipse to your book.json plugins.

Now you can embed interactive code snippets (clojure, javascript, python, ruby, scheme and php) in your gitbooks.

You can read the full interactive guide for using klipse in a gitbook. The guide is itself a gitbook using the klipse plugin.

Clojure & ClojureScript

For clojure[script] code evaluation:


```eval-clojure
(map inc [1 2 3])
```

For clojurescript code transpilation:


```transpile-cljs
(map inc [1 2 3])
```

Javascript


```eval-js
[1,2,3].map(function(x) { return x + 1;})
```

Python


```eval-python
print [x + 1 for x in range(10)]
```

Ruby


```eval-ruby
[1,2]*10
```

Scheme


```eval-scheme
(let ((x 23)
      (y 42))
  (+ x y))
```

PHP


```eval-php
$var = ["a" => 1];
var_dump($var);
```

Configuration

Setting Description Type Allowed values
myConfigKey String
default = it's the default value
-

Plugin


Latest: 1.1.0

0.0.1, 0.0.2, 0.0.3, 0.0.4, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.1.0,

Requirements

GitBook
1.1.0 >1.x.x

Maintainers

Open on NPM