; f should be a fn of one arg, which will be http request args.
; Could also make a version that uses just an expr, and var capture.
; Is there a way to ensure user doesn't use "fnid" as a key?
(mac aform (f . body)
(w/uniq ga
`(tag (form method 'post action fnurl*)
(fnid-field (fnid (fn (,ga)
(prn)
(,f ,ga))))
,@body)))
From srv.arc
©