Last active
December 10, 2015 06:18
-
-
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.
This file contains hidden or 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
#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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice! Looks quite similar to Figment / Wingbeats: http://bugsquash.blogspot.com/2011/03/integrating-formlets-with-wing-beats.html