(define (build-form array) (if (list? array) (map (lambda (thingy) (if (first thingy) `(div (@ (class "label")) (label (@ (for ,(first thingy))) ,(first thingy) ":")) ,(if (second thingy) `(div (@ (class "input")) (input (@ (type "textbox") (name ,(first thingy)) (value ,(with-output-to-string (lambda () (pp (second thingy)))))))) `())) `()) array) '()))