This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-07
Channels
- # beginners (7)
- # boot (25)
- # clojure (66)
- # clojure-australia (10)
- # clojure-berlin (1)
- # clojure-czech (1)
- # clojure-denmark (2)
- # clojure-france (27)
- # clojure-italy (6)
- # clojure-japan (1)
- # clojure-nl (5)
- # clojure-norway (1)
- # clojure-russia (25)
- # clojurescript (55)
- # cursive (27)
- # datascript (2)
- # datomic (5)
- # editors (4)
- # emacs (2)
- # hoplon (183)
- # ldnclj (45)
- # off-topic (4)
- # om (2)
- # rdf (5)
- # re-frame (11)
- # reagent (5)
- # ring (3)
i just read thru https://speakerdeck.com/vjeux/react-css-in-js
yes. i was wondering if i can get rid of the environment specific sifting... it's ugly coupling between the cljsjs packages and the boot tasks..
it's crucial that transitive dependencies are handled by tha dependency resolution machinery
and it gives full control over all the details, like different CSS for rtl languages, CSS theme stuff, etc
because i don't want anyone using pr
or console.log
in my app cause that always ends up in production by mistake
http://www.rebol.com/docs/words/wprobe.html
if probe now/time > 12:00 [print "now"]
u can just drop in the middle of any expression and it prints the expression at that point without affecting the behaviour
boot-hoplon 0.1.8
works. it's going into production. (or at least onto our master branch
what we need to solve is the problem of interop with existing js things that need their own css
im still not sure how that looks like because they mentioned something like "we give a reference to a rule that's somewhere else in the file" not sure what file are they talking about really... js or css file? 😕
that either provides a custom element or a custom attribute, depending on what the js is doing
and in my application i just do :require [hoplon.contrib.datepicker :refer [datepicker]]
or something like that
which i need to investigate all the dependencies of dependencies and include in my css build step manually
so if you don't use the datepicker you won't have the datepicker css in your application
so the "...css rules here..." part would be slurped from the cljsjs/development/datepicker.css
?
sounds good, but the details i beyond me at the moment.
i looked into your latest commit but i can't really understand it at 1st glance.
u r getting the publics to be included into the .hl
from the cljs analyzer vs parsing the hoplon.cljs
source?
and the cljs-console one does lots of metaprogramming, like macros that define macros and so on
(ns hoplon.app-pages._index_DOT_html (:require [homepage.layout :refer [section-header] :as layout]
...
[javelin.core :refer [^{:file "file:/Users/onetom/.m2/repository/javelin/javelin/3.8.1/javelin-3.8.1.jar!/javelin/core.cljs", :line 71, :column 10, :end-line 71, :end-column 14, :protocols #{cljs.core/IWatchable cljs.core/IReset cljs.core/ISwap cljs.core/IMeta cljs.core/IDeref cljs.core/IPrintWithWriter cljs.core/IWithMeta}, :skip-protocol-flag #{cljs.core/IWatchable cljs.core/IReset cljs.core/ISwap cljs.core/IMeta cljs.core/IDeref cljs.core/IPrintWithWriter cljs.core/IWithMeta}, :factory :positional, :arglists (quote ([^{:file "file:/Users/onetom/.m2/repository/javelin/javelin/3.8.1/javelin-3.8.1.jar!/javelin/core.cljs", :line 71, :column 16, :end-line 71, :end-column 20} meta ^{:file "file:/Users/onetom/.m2/repository/javelin/javelin/3.8.1/javelin-3.8.1.jar!/javelin/core.cljs", :line 71, :column 21, :end-line 71, :end-column 26} state ^{:file "file:/Users/onetom/.m2/repository/javelin/javelin/3.8.1/javelin-3.8.1.jar!/javelin/core.cljs", :line 71, :column 27, :end-line 71, :end-column 31} rank
sometimes i would like to see though the code generated from it and i haven't found any way to switch to that
btw, the [adzerk/boot-reload "0.3.2"]
plugin somehow broke on my code.
it falls into an infinite external script loading...
btw, just for the record, i found out about that css in js slide deck from http://react.rocks/example/radium