Fork me on GitHub
#klipse
<
2017-01-06
>
pbaille09:01:27

Hello, could someone tell me why this snippet doesn't work?

html
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css"> 

    <script>
      window.klipse_settings = {
        selector: '.language-klipse'// css selector for the html elements you want to klipsify
      };
    </script>
    <script src="https://storage.googleapis.com/app.klipse.tech/plugin_prod/js/klipse_plugin.min.js"></script>
  </head>

  <body>
    <div class="language-klipse">
       (map inc [1 2 3])
    </div>
  </body>
</html>

Yehonathan Sharvit09:01:01

you need to use the non-minified version of klipse!

Yehonathan Sharvit09:01:25

You are the 2nd person today @pbaille that encounters teh same issue

Yehonathan Sharvit09:01:39

I definitely need to make it more clear in the README!

pbaille09:01:03

thank you a lot for the quick answer

pbaille09:01:10

klipse is killing!

Yehonathan Sharvit09:01:20

Happy that you like it

Yehonathan Sharvit09:01:08

An important remark about the klipse plugin: for clojure snippets you must use the non-minified version of klipse

Yehonathan Sharvit09:01:14

I have made it more clear in the README