parent
a7357dc1a4
commit
f4cca95296
|
@ -0,0 +1,17 @@
|
|||
(define-structure servlet servlet-interface
|
||||
(open scheme-with-scsh
|
||||
servlets
|
||||
simple-servlet-api
|
||||
)
|
||||
(begin
|
||||
|
||||
(define (main req)
|
||||
(let* ((number-1 (single-query (make-number "First number:")))
|
||||
(number-2 (single-query (make-number "Second number:"))))
|
||||
(inform (format #f "~a + ~a = ~a"
|
||||
number-1
|
||||
number-2
|
||||
(+ number-1 number-2))))
|
||||
(final-page "Session finished."))
|
||||
|
||||
))
|
Loading…
Reference in New Issue