This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-17
Channels
- # admin-announcements (1)
- # aleph (1)
- # architecture (1)
- # bangalore-clj (14)
- # beginners (15)
- # boot (89)
- # braveandtrue (1)
- # cider (1)
- # cljs-dev (33)
- # cljsjs (1)
- # cljsrn (147)
- # clojure (149)
- # clojure-quebec (1)
- # clojure-russia (82)
- # clojure-spec (18)
- # clojure-taiwan (2)
- # clojure-uk (15)
- # clojurescript (97)
- # cursive (11)
- # datomic (22)
- # funcool (2)
- # hoplon (53)
- # immutant (16)
- # jobs-rus (8)
- # lambdaisland (1)
- # off-topic (13)
- # om (7)
- # onyx (58)
- # parinfer (6)
- # planck (19)
- # protorepl (2)
- # re-frame (17)
- # reagent (201)
- # rum (6)
- # specter (9)
- # test-check (68)
- # untangled (47)
- # yada (94)
Hey guys! I’m trying to dynamically add/remove a CSS class via :class (cell= {:has-error invalid-iz?})
where (defc= invalid-iz? (nil? (re-matches #"|[a-z]{4}[0-9]{4}" iz)))
. Hence, empty strings and strings like “abcd1234“
should return true
. This works fine in my Clojure REPL but doesn’t in Clojurescript. What am I missing?
I'd do (defc= valid-iz? (or (= iz "") (re-matches #"[a-z]{4}[0-9]{4}" iz)))
. However, not sure why your method wouldn't work
https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure#other-functions
Links to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp
@alandipert, @micha: what's holding back the next hoplon release?
should it really be considered alpha still?
i have the sense that there are a few production apps now out there which are using it without serious issues, so i would release a 6.0.1
for example
there is this branch that i'd like to maybe include in the stable release: https://github.com/hoplon/hoplon/tree/responsive-layout-attributes-micha
im using hoplon-ui which by default pulls in alpha16, but it throws a warning about html-object
because jumblerg is actually using it with master (but deployed as alpha16, i guess)
but i just gave it a try on our current hoplon ui code and hoplon/master seems even snappier than alpha16
i read the commit msg about ICustomAttribute
but didnt quite understand it
but given we are using hoplon ui atm, it doesn't seem like an interesting feature for me personally.
it would be good though if hoplon ui would be that easy to extend 🙂
@micha I did a rebase on boot-hoplon for the jquery split, that could also be worked in, should I rebase against the attributes branch for hoplon too?
@flyboarder: perhaps keeping them separate is easier?
we should get together and decide how we feel about these changes, maybe add your 👍 to the PR if you like it?
cool, online meet-up for the next hoplon version?
Anyone wanna suggest a tentative date/time?
Thanks Alan!
@sdegutis: there are some similarities, yes. haven't used reagent a ton myself, maybe others could speak to the differences
Thanks @alandipert.
I'm getting started with https://github.com/tailrecursion/hoplon-castra-template now.
Oh wow, this whole template has out of date things. It literally doesn't work as of right now.
@sdegutis: looks like it works if you change clojure to 1.8.0 in build.boot and boot.properties, and then change the ring dep to 1.5.0
@alandipert: Should BOOT_CLOJURE_VERSION=1.7.0
also be 1.8.0 in boot.properties?
@alandipert: awesome, I got it working thanks to you.
@sdegutis: great!