slight modifications
This commit is contained in:
parent
dca13aabde
commit
7d188b8269
|
@ -35,16 +35,21 @@
|
|||
(get-number "Addition - Step two" "Second number:"))
|
||||
|
||||
(define (main req)
|
||||
(let ((number-1 (get-number-1))
|
||||
(number-2 (get-number-2)))
|
||||
(show-result (+ number-1 number-2))))
|
||||
|
||||
(define (show-result result)
|
||||
(send-html
|
||||
`(html (title "Result")
|
||||
(body (h2 "Result")
|
||||
(p ,(+ (get-number-1) (get-number-2))
|
||||
(p ,result
|
||||
(hr)
|
||||
(p (url "add-surflet.scm" "Make new calculation.") (br)
|
||||
(url "javascript:history.go(-2)" "New calculation (same session)")
|
||||
(br)
|
||||
(url "/" "Return to main menu."))))))
|
||||
(p (a (@ (href "add-surflet.scm"))
|
||||
"Make new calculation.") (br)
|
||||
(a (@ (href "/"))
|
||||
"Return to main menu."))))))
|
||||
"This string will never be evaluated.")
|
||||
|
||||
"this string will never be evaluated")
|
||||
))
|
||||
|
Loading…
Reference in New Issue