This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-25
Channels
- # admin-announcements (2)
- # beginners (36)
- # boot (37)
- # cider (65)
- # cljsrn (92)
- # clojars (3)
- # clojure (225)
- # clojure-austin (5)
- # clojure-belgium (2)
- # clojure-brasil (3)
- # clojure-china (1)
- # clojure-greece (2)
- # clojure-mexico (3)
- # clojure-news (2)
- # clojure-quebec (1)
- # clojure-russia (14)
- # clojure-spec (24)
- # clojure-uk (53)
- # clojurescript (34)
- # cursive (14)
- # datascript (9)
- # datomic (4)
- # defnpodcast (8)
- # devcards (30)
- # dirac (7)
- # editors (7)
- # emacs (1)
- # figwheel (1)
- # hoplon (85)
- # immutant (2)
- # incanter (1)
- # luminus (5)
- # off-topic (41)
- # om (18)
- # onyx (11)
- # perun (2)
- # re-frame (11)
- # reagent (9)
- # ring (3)
- # spacemacs (2)
- # spirituality-ethics (1)
- # test-check (19)
- # testing (12)
- # untangled (14)
- # yada (9)
if the semantics are similar, binding sounds good to me, we have namespaces for disambiguation
(defelem x1 [{:keys [color]} kids]
(ul :css (cell= {:color color}) (map li kids)))
(defelem+ x2 [{:keys [color]} kids]
(ul :css (cell= {:color color})
(for-tpl [kid kids] (li kid))))
@micha is there any way to get the Dom object as some data structure prior to creating it? Like some AST of the node structure?
@flyboarder: how do you mean?
I'd like to use zippers on the elements to navigate
Yeah that's what I was thinking, just use the clojure code as a list
Oh does it?
I didn't know jquery had
Hm ok, i see what you mean
the functional zipper stuff wants to achieve that, but it can only partly do it because of the limitations of immutable data
Mostly just curious, I'm working on a boot task for inlining html-imports and css files and turning the file into a zipper made it super easy once you get around the zippers location
I used hickory and wrote an extension for CDs
you can parse those with tagsoup, there are some handy functions in boot-hoplon for that
Yeah hickory wraps tag soup
I kinda want to write another zipper for JS but rhino is its own beast
But I'm more looking to manipulate the JS file itself, so I'm looking for a zipper around a JS parser which currently doesn't exist for clojure
For actual file manipulation
That looks interesting might be able to use their parser
I hadn't thought of that, hmmm
I guess for the JS stuff I don't really need to be able to parse it for my use, since the browser doesn't have things like import the way html and css does
@alandipert: Hey Alan, thanks for offering to help. The widget in question is from here https://publish.twitter.com (the Embedded timeline) I’ve created an example repo showing the problem we are having: https://github.com/exicon/twitter-embed-issue Where we are having trouble reinitialising the widget, I have tried to explain the problem in more detail in the repo's readme. If you have any questions let me know and thanks again.