Skip to content

Instantly share code, notes, and snippets.

@aria42
Last active July 5, 2022 13:33
Show Gist options
  • Save aria42/4527372 to your computer and use it in GitHub Desktop.
Save aria42/4527372 to your computer and use it in GitHub Desktop.
(defn with-cdn [cdn-url form]
(clojure.walk/postwalk
(fn [node]
(if (rel-asset-path? node)
(cdn-url node)
node)
form)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment