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:
parent
43a1ca9fc0
commit
10ccdf32fa
1 changed files with 5 additions and 0 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue