| I'm trying to create a checkbox in Anarki. The code I've been trying to use is (attribute input checked opstring)
(mac checkbox (name checked)
`(gentag input
,(join `(type checkbox name ,name)
(if checked `(checked ,checked)))))
but giving an error list->string: expects argument of type <list of character>; given (type checkbox ...
I suspect that this is related to my unfamiliarity with macros (and Arc in general). Any suggestions? |