untangled 2017-05-26

@tony.kay awesome. Works now, But having a bit of trouble with getting the css in advanced mode.

(defui ^:once Root
  static css/CSS
  (css [this] [[(css/local-kw Root :class1) {:color 'blue}]]) 

  Object
  (render [this]
    (dom/div nil
      (dom/p nil "text")
      (dom/style nil (g/css (css/css Root))))))

tried other approaches but I keep getting No protocol method CSS.css defined for type function

to much of a beginner to have any chance at figuring out a fix, for these kinds of problems unfortunately

There is a get-css function. Server side needs you to use it.

@tony.kay don't understand :(

On dev it works, in advanced mode css/css Root gives me that error. Upsert-css also :(

Only testing with js build now.

Think it was happening for 1.0.1 also

I ran the cookbook recipe against 1.0.2 with updated om version alpha48 in advanced mode and it worked. Look ar the source of that example?

@claudiu I just pushed an update to untangled cookbook with my changes there.

the project file has the version of deps I used to get it to work. Running lein cljsbuild once release followed by

cd resources/public
open release.html
(open command assumes you have a mac)

though I just noticed there is a defrecord in there, and that should not be done anymore. only works on the server

and sorry, the method is named call-css.

it is what you should use to call the css method on a component

ooops…hold on. The push didn’t go

it’s pushed now

argh…wtf…it lost a file

ok, should work now