This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-27
Channels
- # aleph (2)
- # beginners (19)
- # boot (15)
- # cider (1)
- # cljsrn (1)
- # clojure (68)
- # clojure-austin (12)
- # clojure-dev (2)
- # clojure-france (6)
- # clojure-italy (46)
- # clojure-russia (45)
- # clojure-spec (55)
- # clojure-uk (41)
- # clojurescript (117)
- # component (15)
- # cursive (54)
- # datomic (24)
- # events (2)
- # funcool (1)
- # instaparse (4)
- # klipse (30)
- # lein-figwheel (3)
- # leiningen (4)
- # luminus (4)
- # om (10)
- # onyx (13)
- # parinfer (36)
- # proton (1)
- # reagent (1)
- # ring (2)
- # ring-swagger (1)
- # rum (19)
- # test-check (6)
- # testing (9)
- # untangled (1)
@viebel - is it possible to have klipse plugin snippets (is there a word for these?) run inside of another, surrounding expression?
eg i’m thinking about a blog post where there are 5-6 snippets, each of which ends with a call to (draw-grid a-grid)
and i’m going to supply draw-grid
offscreen, in a visibility:hidden snippet, because its implementation details are off-topic; the blog post is about grids, not the html5 canvas
and so the idea would be that each snippet has a <canvas>
immediately under it, and each snippet’s call to draw-grid
draws to that specific canvas
i can accomplish this by just having this utility function have an API like (draw-grid a-grid :canvas-1)
, but i wanted to make sure there isn’t a way to eg have some code run offscreen that makes a snippet run in a (binding [*which-canvas* :canvas-1])
expression, so the draw-grid
call can just look like (draw-grid a-grid)
and the user doesn’t have to even think about what’s going on
klippet - klipset - snipperactive - what else? @jrheard
@mfikes do you have a good idea for of name to the klipse interactive snippets ?
just wanted to see if there’s already a different preexisting vocabulary word for ‘em 🙂
I’m trying to think about your question re: wrapping snippets
another way of achieving almost the same result would be to let each snippet provide a “pre-run” piece of code
via some html attribute like data-pre-run
exactly
Would you like to make a PR?
don’t hesitate to send me questions
but keep in mind that I’m in UTC+2
so, don’t be upset if I’m not responsive on slack
it’s ok to send messages 24/7
test.check documentation with klipse will look like this