<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title>KLIPSE: a simple and elegant online cljs compiler and evaluator</title>
        <link rel='shortcut icon' type='image/x-icon' href='img/klipse.png' />
        <link rel="stylesheet" type="text/css" href="css/codemirror.css">
    </head>
    <body>
    <pre><code class="clojure"
    src-paths="http://app.klipse.tech/fig/js,clojurescript,datascript">
        (ns my.ns
            (:require [datascript.core :as d]))
          (map inc [1 2 3]) ; works!
          </code></pre>
    <br/>
    <span class="clojure">
        (let [schema {:aka {:db/cardinality :db.cardinality/many}}
      conn   (d/create-conn schema)]
  (d/transact! conn [ { :db/id -1
                        :name  "Maksim"
                        :age   45
                        :aka   ["Maks Otto von Stirlitz", "Jack Ryan"] } ])
  (d/q '[ :find  ?n ?a
          :where [?e :aka "Maks Otto von Stirlitz"]
                 [?e :name ?n]
                 [?e :age  ?a] ]
       @conn))
        </span>
        <br/>
       <script>
        window.klipse_settings = {
            selector: '.clojure',
            selector_js: '.clojure-js'
        };
        </script>
        <script src="lib/mirror_extensions.js"></script>
        <script src="fig/js/klipse.fig.js"></script>
    </body>
</html>
