This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-15
Channels
- # aleph (14)
- # aws (5)
- # beginners (144)
- # bitcoin (1)
- # boot (14)
- # chestnut (13)
- # cljs-dev (58)
- # cljs-experience (1)
- # cljsrn (47)
- # clojure (107)
- # clojure-dev (9)
- # clojure-finland (12)
- # clojure-gamedev (4)
- # clojure-russia (2)
- # clojure-sanfrancisco (1)
- # clojure-spec (5)
- # clojure-uk (28)
- # clojurescript (34)
- # cursive (9)
- # datomic (3)
- # emacs (11)
- # garden (16)
- # graphql (9)
- # hoplon (3)
- # jobs (2)
- # juxt (6)
- # off-topic (32)
- # om (10)
- # onyx (1)
- # pedestal (4)
- # proton (1)
- # re-frame (14)
- # reagent (8)
- # ring (1)
- # ring-swagger (34)
- # shadow-cljs (19)
- # sioux-falls (1)
- # spacemacs (16)
- # testing (14)
I'm having some issues with garden parsing some content fields, specifically errors with some of the entities/glyph codes e.g. "\039F". Is there something special I need to do or is this not possible?
@dfcarpenter Do you have a sample of the code you’ve tried? I can help try to work out a solution.
`
[:li.progtrckr-todo {:color "silver"
:border-bottom "4px solid silver"}
[:&:before {:content "\039F"
:color "silver"
:background-color "#fff"
:width (em 1.2)
:line-height (em 1.4)}]
[:&:hover:before {:color "#ff4500"}]]
`Error: java.lang.IllegalArgumentException: Invalid digit: 9, compiling:(frontend/wizard.clj:32:31)
@dfcarpenter “\039f” isn’t a valid character string. IIRC, the “\0" prefix means octal notation, which can only have digits 0-7. Maybe you meant “\u039f”?
I was looking at this
`
p:before { content:"\039f"; }
`It has that example for a micron
Ah, my guess would be that the string works in straight CSS, but since you’re using garden, it starts out being a Java string and gets interpreted under Java rules.
So to translate it to Java, add the “u” after the “\”
ahh yes. I tried that and it worked
Thank you
:thumbsup:
An unrelated question have you used garden 2.0? Is it worth switching to?
Not me, no. I’m lurking here because I’ve always been interested in the premise of garden, but I never really got around to using it “in anger”.