Skip to content

Instantly share code, notes, and snippets.

@dvdsgl
Last active December 10, 2015 06:18
Show Gist options
  • Save dvdsgl/4393198 to your computer and use it in GitHub Desktop.
Save dvdsgl/4393198 to your computer and use it in GitHub Desktop.
Sketching an API for 'Volare', a Sintra-esque web app DSL in F#, with nods to Express and CoffeeKup.
#r "Volare.dll"
open Volare
get "/" <| fun req res ->
"Hello, world!"
get "/:name" <| fun req res ->
html <| fun _ ->
body <| fun _ ->
strong <| fun _ ->
sprintf "Hello, %A" req.["name"]
@mausch
Copy link

mausch commented Nov 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment