viebel/klipse

Import klisp as an object

noloop opened this issue · 1 comments

Would there be any way I could do this:

import Klipse from '~/assets/klipse_plugin.min.js'

and then I can start it when I need it, for example:

Klipse.start();

because I realize that when the page changes, it does not update again and I need to update my SPA for klipse to work again.

Also I don't quite understand how I can use klisp by installing the npm package. I tried in many ways to make klipse work on my blog, but it doesn't work, I don't know how you are doing to create the klipse js file, but is there any way to build it as a javascript library? where can we start it dynamically as i showed above?

A user started working on this issue via WorksHub.