Created
April 15, 2011 13:13
-
-
Save MLstate/921666 to your computer and use it in GitHub Desktop.
This file contains 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
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