Created
October 23, 2011 02:13
-
-
Save gcr/1306759 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang web-server/insta | |
(require web-server/templates) | |
(define (start req) | |
(let ([some-input | |
(if (exists-binding? 'some-input (request-bindings req)) | |
(extract-binding/single 'some-input (request-bindings req)) | |
"nothing yet")]) | |
(response/full 200 #"Okay" (current-seconds) TEXT/HTML-MIME-TYPE | |
empty | |
(list (string->bytes/utf-8 (include-template "static.htm")))))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing</title> | |
</head> | |
<body> | |
<h1>You said: @|some-input|</h1> | |
<form method="get" action="#"> | |
<input name="some-input" type="text" /> | |
<input type="submit" /> | |
</form> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment