(transform content)

(transform [content-type content-val] entities transforms)

Work in progress! Subject to change/break in future releases.

Source

(defn transform "Work in progress! Subject to change/break in future releases." ([content] (transform (parse :play-cljc.transforms/content content) [] [])) ([[content-type content-val] entities transforms] (case content-type :subcontent (reduce (fn [entities content] (transform content entities (into transforms ((juxt :name :args) content-val)))) entities (:content content-val)) :entity (conj entities (transform-entity content-val transforms)))))