Skip to content

Instantly share code, notes, and snippets.

@vito
Created November 27, 2010 00:08
Show Gist options
  • Save vito/717381 to your computer and use it in GitHub Desktop.
Save vito/717381 to your computer and use it in GitHub Desktop.
arc challenge on mongrel2 + atomo
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