i'm trying to make cuerdas
self-host compatible for having interactive documentation with Klipse but I'm kind of stuck
it uses a foreign JS libs for its ClojureScript implementation, is it possible to add foreign JS libs and externs to Klipse?
sorry if dumb question, first time playing with self-hosted CLJS and Klipse
Excellent question @dialelo What is the name of the foreign lib?
its the xregexp
library http://xregexp.com/
Oh @dialelo it’s your lucky day
I have made a demo page for interactive doc of cuerdas using klipse
Here is the page
The trick with foreign libs is to:
1. add the javascript source to the page in a <source>
tag
2. insert a goog.provide
statement after klipse script like this <script>goog.provide(‘cuerdas.vendor.xregexp’);</script>
Please confirm that it works also with your use case
ok?
thanks @viebel i will try that later today, i'm AFK right now
btw does the codox-klipse plugin support adding script tags?
For the moment no.
But it should be fairly easy to add via the codox html transformations. Take a look here https://github.com/weavejester/codox#html-transformations
I thought you were using asciidoctor
@dialelo ⬆️