Skip to content

Instantly share code, notes, and snippets.

@MLstate
Created April 15, 2011 13:13
Show Gist options
  • Save MLstate/921666 to your computer and use it in GitHub Desktop.
Save MLstate/921666 to your computer and use it in GitHub Desktop.
server = Server.make_dispatch(Server.Filter.path(["app1"]),
| {~path ...} -> Resource.html("Test", <>This is application 1, with path {List.to_string(path)}</>)
)
server = Server.make_dispatch(Server.Filter.path(["app2"]),
| {~path ...} -> Resource.html("Test", <>This is application 2, with path {List.to_string(path)}</>)
)
server = Server.simple_dispatch(
| {~path ...} -> Resource.html("Test", <>No application, this is {List.to_string(path)}</>)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment