Re: Enlive update transformation
Hi, My 2 cents: this solution may be subject to escaping issues. When one needs to pass parameters to Javascript, I often recommend to inject one
Re: Enlive update transformation
On 05/09/2011 10:15 PM, Thorsten Wilms wrote: I tried to turn that into a transformation: (defn substitute-token [& values] #(map (fn [m] (update-in m [:content] (fn [c] (apply (partial replace-str "token" %) c values)) Apparently I had my brain knotted, but raek and fliebel on IRC helped