Handbook
Glossary
<calculator-action> ( -- action )
Vocabulary
webapps
.
calculator
Inputs
None
Outputs
action
an
object
Definition
USING:
accessors
furnace.actions
furnace.redirection
html.forms
kernel
math
urls
validators
;
IN:
webapps.calculator
:
<calculator-action>
( -- action )
<page-action>
[
{
{
"z"
[
[
v-number
]
v-optional
]
}
}
validate-params
]
>>init
{
calculator
"calculator"
}
>>template
[
{
{
"x"
[
v-number
]
}
{
"y"
[
v-number
]
}
}
validate-params
URL" %24calculator"
clone
"x"
value
"y"
value
+
"z"
set-query-param
<redirect>
]
>>submit
;