0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

Add defcs macro.

This commit is contained in:
Andrey Antukh 2016-07-09 21:32:14 +03:00
parent 43a1ca9fc0
commit 10ccdf32fa
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -38,3 +38,8 @@
[& args]
(let [[render doc mixins cname] (parse-defc args)]
`(def ~cname ~doc (rum/build-defc ~render ~mixins ~(str cname)))))
(defmacro defcs
[& args]
(let [[render doc mixins cname] (parse-defc args)]
`(def ~cname ~doc (rum/build-defcs ~render ~mixins ~(str cname)))))