diff options
| author | Asko Nõmm <asko@nmm.ee> | 2025-09-24 21:04:21 +0300 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2025-09-24 21:04:21 +0300 |
| commit | 13f7093cfc9860dc2a9b2fd94f19d3661f15b3d3 (patch) | |
| tree | cdfdbcb1eb865abe45b7c73e263c0d9ed2aa3023 | |
| parent | b94e6243d0f557a2221e3369605933de5c98de74 (diff) | |
WIP
| -rw-r--r-- | resources/clj-kondo/hooks/dompa.clj | 5 | ||||
| -rw-r--r-- | 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) |
