Handbook
Glossary
validate-values ( assoc validators -- )
Furnace framework
»
Furnace presentation layer
»
HTML forms
»
HTML form infrastructure
Prev:
validation-failed? ( -- ? )
Vocabulary
html
.
forms
Inputs
assoc
an
assoc
validators
an assoc mapping value names to quotations
Outputs
None
Word description
Validates values in the assoc by looking up the corresponding validation quotation, and storing the results in named values of the current form.
See also
validate-params
Definition
USING:
assocs
kernel
;
IN:
html.forms
:
validate-values
( assoc validators -- )
swap
[
[
dup
]
]
dip
[
at
]
curry
compose
[
dip
validate-value
]
curry
assoc-each
;