aero icon indicating copy to clipboard operation
aero copied to clipboard

Add #slurp to slurp local files as strings

Open orestis opened this issue 11 months ago • 0 comments

Like #include, but instead of expecting a config, just pass the raw string contents of a file.

E.g:

(defmethod reader 'slurp
  [{:keys [resolver source] :as opts} tag value]
  (slurp (if (map? resolver)
           (get resolver value)
           (resolver source value))))

orestis avatar Jan 24 '25 10:01 orestis