Fork me on GitHub
#scittle
<
2022-07-30
>
teodorlu17:07:31

is there a babashka script or something to update the latest "installed scittle" in HTML files? Scittle makes it super easy to make small standalone HTML files that have some lines like

<script src="" type="application/javascript"></script>
    <script crossorigin src=""></script>
    <script crossorigin src=""></script>
    <script src="" type="application/javascript"></script>
... and just work. But being able to update dependencies without lots of manual work is also nice!

borkdude17:07:18

Maybe use a Selmer template or something? ;)

borkdude17:07:53

perhaps jsdeliver also supports @latest or so

👍 1
genRaiy09:08:49

https://cdn.jsdelivr.net/npm/scittle/dist/ gives back the latest so no version required :-)

teodorlu17:07:59

I'm currently checking in the HTML verbatim, and really like not having a build step (https://github.com/teodorlu/play.teod.eu/tree/88aa0fcdc442698b5af4909e9822197663b0e618/scicloj-libraries/index.html). Latest does indeed work!

teodorlu19:07:32

is clojure.pprint not included with scittle? I was hoping I could display some data quickly with

[:pre 
 (with-out-str
   (pprint data))]

borkdude19:07:36

Feel free to post an issue. cljs.pprint is pretty big when compiled, this is why it's not included by default, but we can make it a separate module

👍 1
borkdude19:07:05

There is a SCI config in nbb for it. We could move that to sci.configs and then share it between nbb and scittle. PRs welcome!

👍 1