I have a function like this:
pdfkit-clj.core/gen-pdf
[html & {:keys [path tmp asset-path stylesheets margin orientation page-size], :or {path (:path defaults), tmp (:tmp defaults), asset-path (:asset-path defaults), margin {}, orientation (:orientation defaults), page-size (:page-size defaults)}}]
Now I'm trying to pass it a map with keyword arguments which doesn't work.
(let [gen_pdf_args {:tmp tmp_dir
:margin {:top 0 :right 0 :bottom 0 :left 0}}]
(gen-pdf html-black gen_pdf_args)
)
This issue is similar to turning a list into arguments.