Fork me on GitHub

oh--i should have checked. yes, it runs fine after i delete main.out. thanks!

👍 4

Does anyone have any experience inter-operating with JavaScript code that uses template strings? I'd like to use this lib from cljs:


interesting... it looks like you can just invoke their template literals as functions


You're going to have to look this up to double-check me, but I'm pretty sure that:

hello`there ${how} are ${you} today`
is equivalent to:
hello(["there ", " are ", " today"], how, you)


ahh, thanks! I'm going to try out calling it in js in that fashion first


confirmed this works in js:

const color = "blue"
 const ColorDiv = styled.div`color: ${color};`
 const ColorDiv = styled.div(['color: ', ';'], color)


thanks for your help


Has anyone set this up using lein-cljsbuild instead of build? more info in #lein-figwheel of the exact issue I’m hitting is


Hey guys, Just recently created a macro namespace in clojurescript, and I’m now running into an issue when figwheel reloads… FileNotFoundException: Could not locate <macro ns> on classpath Anyone else run into this issue before? Everything works fine if i build via lein cljsbuild but figwheel no longer works after adding the macro.


@danvingo I use styled-components at my workplace and at the moment I’m trying to find something similar in cljs as well


I am just putting styles into style attribute. But doesn't look bad.


that doesn’t seem to work with re-frame 😞


hmm I think I was doing something wrong, haha

dvingo21:05:13 I was able to get styled-components working with a fulcro app. Just making sure you can call the styled-components from cljs. I'm working on writing a macro now (the code snippet has some thoughts on that) to replicate what the template literals expand into in JS, and deal with passing javascript objects to styled components but allowing client code to transparently pass cljs data structures for props.


have you found anything?


trying to decide which library to use for css in my re-frame application. any recommendations anyone?


this is not a popular opinion here but...just use properly written SCSS. trying to cram every CSS/SCSS feature into some weird CLJ DSL isn't going to cut it


Is Garden popular for clj/cljs web apps? Seems like writing hiccup and clojure might make sense.

Philip Hale19:05:53

Something like would be nice... standard SCSS but scoped to individual components to save managing global cascades

👍 4

@phil672 I also tried to keep using SCSS but having local names - linked to clj namespaces

👍 8

the problem being, that it's slightly painful to write/read, specially in the clj part


I just write scss now.

Philip Hale20:05:57

Yeah that doesn't look as nice, because rather than writing regular classnames you have to write clj; it's not true SCSS.


yep, also editors go crazy trying to parse it


is it normal for lein figwheel to take around 1 minute and 10 seconds to start up, every time?


actually I just timed it and it’s 100 - 110 seconds


@bravilogy No, not in general. If you can, do a thread dump to see where it is spending its time (presuming that most of it is spent in one big operation that is easy to catch).


is there a command for that @mfikes?


jps to find the process id