Skip to content

Instantly share code, notes, and snippets.

@colwilson
Created November 5, 2012 08:26
Show Gist options
  • Save colwilson/4016002 to your computer and use it in GitHub Desktop.
Save colwilson/4016002 to your computer and use it in GitHub Desktop.
#!/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