Last active
April 21, 2017 05:36
-
-
Save misgeatgit/5bdf8c7ddcd0b683181b30f6d11d1baa 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
# Artanis is a guile web framework. Below are some code snippets demonestrating how to use it. | |
#------------------------------------------------------------------------------------------------ | |
# A simple demo of parsing get parameters. eg. http://127.0.0.1:8080/hello?first=Foo&last=Bar | |
guile -c '(use-modules (artanis artanis))(get "/hello" (lambda (rc)(format #f "<h1 s style=\"color:YellowGreen\">Hola ~a ~a!</h1> " (params rc "first") (params rc "last")))) (run #:port 8080)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment