This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-27
Channels
- # bangalore-clj (1)
- # beginners (11)
- # boot (23)
- # business (2)
- # cider (43)
- # cljs-dev (65)
- # cljsjs (17)
- # cljsrn (4)
- # clojure (144)
- # clojure-austin (4)
- # clojure-berlin (3)
- # clojure-finland (4)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojure-spec (73)
- # clojure-uk (42)
- # clojured (2)
- # clojurescript (166)
- # core-matrix (4)
- # cursive (24)
- # datomic (39)
- # dirac (8)
- # hoplon (97)
- # jobs (2)
- # jobs-rus (11)
- # juxt (16)
- # lein-figwheel (8)
- # leiningen (1)
- # luminus (5)
- # lumo (46)
- # off-topic (1)
- # om (39)
- # onyx (43)
- # overtone (1)
- # pedestal (3)
- # perun (6)
- # play-clj (3)
- # protorepl (14)
- # re-frame (21)
- # reagent (25)
- # remote-jobs (1)
- # ring (1)
- # robots (4)
- # rum (13)
- # specter (5)
- # untangled (72)
- # yada (62)
So with the atom UUID thing I thought I could refer to data I created in my contentful-paths
function but it seems only the result of the render function is added back to the real entry:
{:path "t/opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :slug "opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :content “....", :permalink "/t/opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :full-path "/Users/martin/etc/boot/cache/tmp/Users/martin/projects/one-of-each/1ila/u2qisy/t/opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :parent-path "t/", :short-filename "opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :extension "opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :filename "opening-superpoze-2BoKegM6fSy2cOUIQAkmYC", :io.perun/trace [:ofe.contentful/contentful]}
Are there any built-in tools to add entries to the metadata?Running out of ideas… https://github.com/martinklepsch/one-of-each/tree/atom @bhagany if you have any suggestions let me know!
@martinklepsch Yes, to modify metadata of the paths, you'd have to use content-task
instead of render-task
. In this case, the return value from your rendering function needs to be map of metadata to set, plus a :rendered
key that contains your rendered content.
There are a few other details that are different, because content-task
is lower level than render-task
, but I think it is relatively straightforward. If you have more questions about it, I'm happy to answer, but right now I have to take my kids to school. I'll be back later, so feel free to post any questions in the meantime.
Also, I should apologize, my memory on this was faulty yesterday, when I said something about doing this in your paths-fn
. That way could work too, but you'd still need to use content-task
.
@martinklepsch good job with http://one-of-each.xyz. what is the idea behind it?