We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6fd931 commit 857582bCopy full SHA for 857582b
1 file changed
src/joy/form-helper.janet
@@ -22,13 +22,12 @@
22
(hidden-field action :_method))]))
23
24
25
-(defn label [key &opt attrs]
26
- (default attrs [:for (string key)])
+(defn label [key & args]
27
(let [str (string key)]
28
- [:label (merge {:for str :style "display: block;"} (apply table attrs)) str]))
+ [:label (merge {:for str :style "display: block;"} (table ;args))
+ str]))
29
30
31
-(defn submit [value &opt attrs]
32
- (default attrs [])
33
- [:input (merge {:type "submit" :value value :style "display: block"} (apply table attrs))])
+(defn submit [value & args]
+ [:input (merge {:type "submit" :value value :style "display: block"} (apply table args))])
34
0 commit comments