Created
November 27, 2010 00:08
-
-
Save vito/717381 to your computer and use it in GitHub Desktop.
arc challenge on mongrel2 + atomo
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
use: "web" | |
Site = Website new: [ | |
"/" -> | |
{ form: { | |
input: "foo" | |
submit | |
} action: { | |
foo = parameter: "foo" | |
link: "click here" to: { | |
respond-with: ("you said: " .. foo) | |
} | |
} | |
} | |
] | |
test = | |
Site bind: [ | |
@id -> "f284b010-ef92-11df-98cf-0800200c9a66" | |
@from -> "tcp://127.0.0.1:9997" | |
@to -> "tcp://127.0.0.1:9996" | |
] | |
"running" print | |
{ test listen } spawn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment