On this page:
send/ formlet
embed-formlet
Version: 4.1.4
2.10.5 Utilities

 (require web-server/formlets/servlet)

A few utilities are provided for using formlets in Web applications.

(send/formlet f [#:wrap wrapper])  any/c
  f : (formlet/c any/c)
  wrapper : (xexpr? . -> . response?)
   = 
(lambda (form-xexpr)
  `(html (head (title "Form Entry"))
         (body ,form-xexpr)))

Uses send/suspend to send f’s rendering (wrapped in a FORM tag whose action is the continuation URL (wrapped again by wrapper)) to the client. When the form is submitted, the request is passed to the processing stage of f.

(embed-formlet embed/url f)  xexpr?
  embed/url : embed/url/c
  f : (formlet/c any/c)

Like send/formlet, but for use with send/suspend/dispatch.