From 13f7093cfc9860dc2a9b2fd94f19d3661f15b3d3 Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Wed, 24 Sep 2025 21:04:21 +0300 Subject: WIP --- resources/clj-kondo/hooks/dompa.clj | 5 ++++- src/dompa/utils.cljc | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/clj-kondo/hooks/dompa.clj b/resources/clj-kondo/hooks/dompa.clj index b0eee7a..2433051 100644 --- a/resources/clj-kondo/hooks/dompa.clj +++ b/resources/clj-kondo/hooks/dompa.clj @@ -34,4 +34,7 @@ "the second argument must be a sequence or a map. " "In other words, the second argument must be an attribute map " "or sequence of other nodes created with the $ macro.") - :type :dompa.utils/$-arg-validation))))) \ No newline at end of file + :type :dompa.utils/$-arg-validation))))) + + ; if the first arg is a keyword, the second arg is a map, then the third arg can + ; only be a sequence diff --git a/src/dompa/utils.cljc b/src/dompa/utils.cljc index d76ba28..9e1cb27 100644 --- a/src/dompa/utils.cljc +++ b/src/dompa/utils.cljc @@ -42,6 +42,6 @@ ($ :div ($ "hello world" n)) ($ "hello") - ($ :div "test"))) + ($ :div (map #(%) []) "test"))) (test-page) -- cgit v1.2.3