What is Klipse?
The klipse plugin is a javascript tag that transforms static code snippets of an html page to live and interactive snippets:
- Live: The code is executed in your browser
- Interactive: You can modify the code and it is evaluated as you type
The code evaluation is done in the browser: no server is involved at all!
Read more about the klipse plugin.
In this short article, we show live code snippets in different languages.
Modify the code in the snippets and enjoy the interactivity!
Javascript
[1, 2, 3].map((x) => x + 1)
Ruby
[1, 2, 3].map{|x| x + 1}
PHP
$name = "klipse";
echo "hello". " " . $name;
Clojure[script]
(map inc [1 2 3])