Skip to content

Instantly share code, notes, and snippets.

@misgeatgit
Last active April 21, 2017 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misgeatgit/5bdf8c7ddcd0b683181b30f6d11d1baa to your computer and use it in GitHub Desktop.
Save misgeatgit/5bdf8c7ddcd0b683181b30f6d11d1baa to your computer and use it in GitHub Desktop.
# 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