Fork me on GitHub

@adamw Give a try πŸ™‚ It’s also reactive to boot!


@levitanong: will do thanks!


Ok so annoying javelin question. I am probably doing this the wrong way, any suggestions greatly welcomed. I have a cell that responds when window size changes (couples a resize listener to a cell) and if so, triggers a pdf/js re-render. This actually returns a promise, and it's not a good idea to call .render() again while it's rendering (does weird stuff). So I would like to gate my cell on both size changed & not currently rendering. This is what I tried:

(defn page-size [page canvas pg-width pg-height]
  (let [
        rendering (cell false)
    ; set canvas size and re-render page
    (cell= (let [...other stuff...]
             (when (not rendering)
               (reset! rendering true)
               (.then (.render page render-context) #(reset! rendering false))


problem of course is that I can't (reset! rendering true) inside the (cell= because rendering is passed as the value, -not- the cell. Is there a way to get a hold of the actual cell so I can set it to false. And if I do will it cause weird stuff to happen on propagation (since the current cell depends on rendering as well)? Any suggestions? πŸ™‚


hi d3 is quite complicated, i really liked the convenience layer of


there is cljsjs package for it, but like most cljsjs packages it doesn't play very well with hoplon out of the box


plotte layer is ok if you need country maps for visualisation


@adamw: instead of using cell= i would add-watch... it seems like you're trying to handle an event, which is achieved most easily with callbacks


i should add that it's possible to do what you want using cells but without cell=... with javelin.core/formula. but i think it would be more hassle than callbacks


@alandipert: Ahh, ok thanks! Will give it a go


kudos for thinking in cells all the way tho πŸ’―


Hi, What would be the best way to embed in my hoplon app a REPL?


(I mean ClojureScript in browser)


example usage at the bottom of the file, i have driven this stuff successfully from cells in the past


ty, I will check it out.