This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-29
Channels
- # announcements (5)
- # beginners (25)
- # calva (53)
- # clj-kondo (9)
- # clojure (25)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (1)
- # conjure (2)
- # data-science (1)
- # datalevin (4)
- # datascript (6)
- # deps-new (5)
- # emacs (5)
- # etaoin (6)
- # figwheel-main (1)
- # fulcro (46)
- # gratitude (3)
- # hyperfiddle (8)
- # introduce-yourself (13)
- # lsp (13)
- # nextjournal (5)
- # off-topic (2)
- # pathom (4)
- # polylith (11)
- # re-frame (16)
- # releases (4)
- # scittle (67)
- # shadow-cljs (38)
- # slack-help (4)
- # specter (13)
- # sql (29)
- # squint (21)
- # test-check (3)
- # vim (13)
- # xtdb (15)
trying to get scittle working with tinyhttp via nbb and it's going well, except one strange thing with css... any ideas why the nbb version does not render the grid in the same way?
(ns interactive.server.web
(:require ["@tinyhttp/app" :as app]
["path" :as path]))
(def app (app/App.))
(defn -main
[_]
(-> app
(.get "/" (fn [_req res]
(.sendFile res (path/resolve "public/index.html"))))
(.get "/cljs/:ns" (fn [req res]
(.sendFile res (path/resolve (str "public" (.-path req))))))
(.listen 3000 (fn [] (js/console.log "Listening on ")))))
the CLJS delivered by scittle is interpreted by I get a message saying that I have an XML syntax error
The same error does not come from the babashka example. What content type are you setting there?
yes, scittle visits every script tag with application/x-scittle and fetches the CLJS
it's a https://stackoverflow.com/questions/51000009/i-keep-getting-this-error-xml-parsing-error-syntax-error-but-still-the-website so I'm going to ignore it
setting it to text/plain
removes the noise but is obviously a lie. I hate computers again.
I opened an issue https://github.com/tinyhttp/tinyhttp/issues/360
anyway - getting this all set up will be very handy for a state / data generation tool I am making for the FC UI devs
@borkdude is there some guidance on how I can add promesa
as requested in https://github.com/babashka/scittle/issues/28
Yes, this should be relatively easy. There is a project called sci.configs. nbb itself uses this to add promesa to the SCI config. you can do the same for scittle
There is a similar config for pprint in nbb: https://github.com/babashka/nbb/blob/main/src/nbb/pprint.cljs We should move it to sci.configs and then we can also use it in scittle