Skip to content

Commit a016c20

Browse files
committed
add custom extensions to the beginning of the schema
- this way extensions have priority
1 parent 106fb08 commit a016c20

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/huff2/extension.clj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
(fn [element]
2727
;; We want to add a branch to the hiccup branches.
2828
(if (hiccup-branches? element)
29-
(conj element [node-name node-schema])
29+
(vec (concat
30+
(take 2 element)
31+
[[node-name node-schema]]
32+
(drop 2 element)))
3033
element))
3134
hiccup-schema)))
3235

0 commit comments

Comments
 (0)