On this page:
input-string
input-int
input-symbol
Version: 4.1.1

4.4 Predefined Formlets

 (require web-server/formlets/input)

There are a few basic formlets provided by this library.

input-string : (formlet/c string?)

A formlet that renders as

  (list `(input ([name (format "input_~a" next-id)])))

where next-id is the next available input index and extracts (format "input_~a" next-id) in the processing stage and converts it into a UTF-8 string.

input-int : (formlet/c integer?)

Equivalent to (cross (pure string->number) input-string).

input-symbol : (formlet/c symbol?)

Equivalent to (cross (pure string->symbol) input-string).