Created
November 5, 2012 08:26
-
-
Save colwilson/4016002 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env python | |
import sys | |
from kiss.core.application import Application | |
from kiss.views.templates import Response | |
class Controller(object): | |
def get(self, request): | |
return Response("Hello World!") | |
options = { | |
"application": { | |
"address": "127.0.0.1", | |
"port": 8080 | |
}, | |
"urls": { | |
"": Controller, | |
}, | |
} | |
app = Application({"application": {"address": "127.0.0.1", "port": 8080}, "urls": {"": Controller} }) | |
if __name__ == '__main__': | |
app.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment