Created
November 29, 2010 18:33
-
-
Save mariochavez/720337 to your computer and use it in GitHub Desktop.
Ejemplo del frameworks ligeros para web apps
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
| public class HelloWorld : ManosApp { | |
| public HelloWorld () | |
| { | |
| Route ("/", ctx => ctx.Response.End ("Hello, World")); | |
| } | |
| } |
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
| public class Module : NancyModule | |
| { | |
| public Module() | |
| { | |
| Get["/"] = parameters => { | |
| return "Hello World"; | |
| }; | |
| } | |
| } |
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
| get '/hi' do | |
| "Hello World!" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment