This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-07
Channels
- # admin-announcements (4)
- # aws (2)
- # beginners (25)
- # boot (116)
- # braid-chat (4)
- # cider (6)
- # cljsjs (4)
- # cljsrn (17)
- # clojure (196)
- # clojure-austin (23)
- # clojure-belgium (5)
- # clojure-dev (78)
- # clojure-dusseldorf (6)
- # clojure-italy (2)
- # clojure-japan (6)
- # clojure-poland (1)
- # clojure-russia (132)
- # clojure-sdn (1)
- # clojure-uk (26)
- # clojurescript (87)
- # code-reviews (3)
- # core-async (26)
- # cursive (8)
- # datomic (40)
- # devcards (8)
- # emacs (4)
- # funcool (32)
- # hoplon (30)
- # jaunt (34)
- # jobs (1)
- # lein-figwheel (1)
- # leiningen (5)
- # om (14)
- # onyx (8)
- # overtone (31)
- # parinfer (14)
- # proton (8)
- # protorepl (1)
- # re-frame (30)
- # reagent (10)
- # spacemacs (2)
- # untangled (107)
- # yada (3)
@micha: I finally could make a new cljsjs lib!
cljsjs/tabletop
I fetch the data from a google sheet. I do:
(defc static-content nil)
(with-init!
(.init js/Tabletop
(clj->js
{:key static-content-sheet
:callback #(reset! static-content (js->clj %))
:simpleSheet true})))
(my-element :bg (get @static-content "background-img-url"))
doesn't give my anything. (because the reset of the cell occurs after my-element get the background img url...) and (my-element :bg (cell-path static-content ["background-img-url"]))
doesn't deref...
any ideas?
@leontalbot: what is the :bg
attribute there?
ahh... :style (str .... bg ....)
should be :css right?
(my-element :css (cell= {:background-image (get static-content "background-image")}) ...
how would you translate this in hlisp
background-image: url("paper.gif");
?
ok yeah (str "url('" image-url "')
thanks
trying
can't see bg
I can see the data with (text "~{static-content}")
got it!
@micha apologies you were right!
Thanks man, works great!
Hello. Do I need to require case-tpl
to use it? I get WARNING: Use of undeclared Var app.views/case-tpl
I suppose it should be hoplon.core/case-tpl
any ideas why and what should I do? I am using alpha13
thanks!
weird because I use another macro loop-tpl
without any warnings...
@leontalbot: I think those new macros are in master repo but not on clojars. You could clone the repo and then do boot Pom jar install or maybe there is an all in one task in build.boot
yep, what @raywillig said, or boot build-jar
in the hoplon git directory
ok thanks