This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-03-07
Channels
- # announcements (1)
- # architecture (9)
- # babashka (3)
- # calva (10)
- # clj-http (13)
- # clj-kondo (11)
- # clojure (23)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (112)
- # clojure-uk (4)
- # clojuredesign-podcast (8)
- # clojurescript (10)
- # core-async (5)
- # cursive (7)
- # data-science (15)
- # datascript (2)
- # datomic (29)
- # emacs (5)
- # events (1)
- # hugsql (1)
- # hyperfiddle (9)
- # midje (1)
- # missionary (3)
- # music (1)
- # off-topic (34)
- # polylith (1)
- # re-frame (16)
- # shadow-cljs (117)
- # squint (19)
- # yamlscript (1)
Hi, I’m trying out a project with squint + lit, it’s pretty cool. Super nice to see defclass put to good usage! I end up using a bunch of code like:
(js-template lit/html
"<div class='border border-slate-600 mb-2 p-1'>"
"<div>" (:created-at this) "</div>"
"<div>" (:body this) "</div>"
"<button @click=" (.-addComment this) " class='bg-slate-500 rounded-md border p-1 text-slate-200 text-sm'>"
(.comment-button-text this)
"</button>"
(when (.commenting? this)
(.render-editor this))
"<div class='ml-2'>"
(when (not-empty (:comments this))
(.. this -comments (map render-comment)))
"</div>"
"</div>")
is there any existing solution to combine js-template with more hiccupish syntax?I have a branch that allows more hiccup-esque stuff in combination with lit/html. Let me see where it is
if you're willing, I could make this branch up to date with main and you could try it out using a local build?
one issue I struggled with was ul + li in a sequence etc but perhaps using your input we can work that out
I'm trying out squint's nrepl-server with bun. I'm able to start and connect with Calva ("generic") and evaluate files that contain only npm dependencies, but as soon as I try and depend on another namespace in my project I get an error, Cannot find package "foo.bar"
. I'm starting the nrepl-server via bun --bun squint nrepl-server :port 1888
and I have :paths ["src"]
in a squint.edn
file; anything else I might be missing configuration-wise?
this shouldn't be too hard to solve, but it would need some logic around compile + loading of transitive namespace stuff
@U050RLRRQ nice to see you around here 👋 I’m also using squint and bun lately. Hope you’re well ☺️
@U050RLRRQ actually curious — what are you building? 🙂