Fork me on GitHub
#slack-help
<
2016-01-13
>
jimmy16:01:54

is code posted in slack being collapsed by default ?

meow16:01:18

can you give an example

jimmy16:01:13

(om/app-state reconciler)
#object [cljs.core.Atom {:val {:navigation-point :project-page, :commons {:nav #object[cljs.core.async.impl.channels.ManyToManyChannel], :nav-mult #object[cljs.core.async.t_cljs$core$async31116]}, :navigation-data {:_title "Housing developer", :_params {:project-id "123", :project-name "project-test", :developer-name "phu-my-hung"}, :query-params nil}, :om.next/queries {#object[my-project.components.app.App] {:params {:dom-com/query [({:project/page [:project/name :project/description {:project/developer [:developer/name]}]} {:project/name "Erica"})]}}}, :dom-com/props {:project/page [{:project/name "Erica", :project/description "One is sure to enhance the dimensions of one’s desires, thoughts and spirits, while staying at Erica. It’s a classic mix of all that you were longing for in your dream house. It has meticulously designed spacious apartments with all the modern amenities in the thick of plush greenery which makes it a comfortable and cozy home. The residential apartments in Erica lets you reload unconditional bliss that leads to momentous way of living. Erica has lavish yet thoughtfully designed residences that carts comfort, content and care. Settle amidst life changing ambiance of this complex that gives you a chance to elevate your lifestyle for a lifetime. ", :project/developer {:developer/name "Eisha Group"}}]}, :om.next/tables #{}}}]
my-project.core=> (om/class->any reconciler my-project.components.app/App)
#object[my-project.components.app.App]
my-project.core=> (om/get-query (om/class->any reconciler my-project.components.app/App))
[:navigation-point {:dom-com/props [({:project/page [:project/name :project/description {:project/developer [:developer/name]}]} {:project/name "Erica"})]} :navigation-data]
my-project.core=>
my-project.core=> (om/get-query (om/class->any reconciler my-project.components.app/App))
[:navigation-point {:dom-com/props [({:project/page [:project/name :project/description {:project/developer [:developer/name]}]} {:project/name "Erica"})]} :navigation-data]
my-project.core=> (parser {:state (om/app-state reconciler)} (om/get-query (om/class->any reconciler my-project.components.app/App)))
"test ttt" {}
{:navigation-point :project-page, :dom-com/props {}, :navigation-data {:_title "Housing developer", :_params {:project-id "123", :project-name "project-test", :developer-name "phu-my-hung"}, :query-params nil}}

jaen16:01:21

No, not in the backtics.

jimmy16:01:23

like this one

jaen16:01:38

But you can post a code sinppet somehow

jaen16:01:40

Those are collapsed

jimmy16:01:00

ok so we need to post it to gist or something like that then post a link here ?

jimmy16:01:38

thanks 😄

jaen16:01:42

Or you can use gists as well if you prefer.