This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-19
Channels
- # beginners (55)
- # boot (1)
- # chestnut (1)
- # cider (130)
- # clara (31)
- # cljsrn (1)
- # clojure (12)
- # clojure-dev (4)
- # clojure-india (1)
- # clojure-italy (2)
- # clojure-uk (33)
- # clojureindia (1)
- # clojurescript (12)
- # component (1)
- # datascript (5)
- # datomic (2)
- # duct (2)
- # emacs (16)
- # hoplon (1)
- # jobs (1)
- # lumo (13)
- # off-topic (3)
- # onyx (4)
- # remote-jobs (1)
- # schema (1)
- # shadow-cljs (110)
- # spacemacs (2)
- # specter (44)
- # vim (6)
This idea hangs in my head a few months.
With the ideas of #datomic and #om , we should be able to have the "frontend" with the few steps:
1- each route is described as a query [{[:user/id ?id] [:user/name :as :ui.title/name]}]
2- there is function that maps the route /user/33
to "params-state" {?id 33}
3- the query [{[:user/id 33] [:user/name :as :ui.title/name]}]
will generate something like [{:ui.title/name "Foo Bar"}]
4- There is a thing* that that describes how-to "render" the data, basead in the key names {:ui.title/name (fn [ctx] [:div.my-title (:value ctx)])}
5- once I have data and component description, it will generate smething like [:div.my-title "Foo Bar"]
and it will be rended.
I think the "most missing" piece is the step 4
It differ from #om/ relay
once "query -> data, data + components descriptions -> ui", in place of "components -> query -> data -> ui"
There is some lib/framework that do something like that?