mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
Add defcs macro.
This commit is contained in:
parent
43a1ca9fc0
commit
10ccdf32fa
@ -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…
x
Reference in New Issue
Block a user