Skip to content
Go to file
Cannot retrieve contributors at this time
executable file 19 lines (16 sloc) 552 Bytes
#!/usr/bin/env python
from brubeck.request_handling import Brubeck, WebMessageHandler
from brubeck.connections import Mongrel2Connection
import sys
class DemoHandler(WebMessageHandler):
def get(self):
name = self.get_argument('name', 'dude')
self.set_body('Take five, %s!' % name)
return self.render()
config = {
'msg_conn': Mongrel2Connection('tcp://',
'handler_tuples': [(r'^/brubeck', DemoHandler)],
app = Brubeck(**config)
You can’t perform that action at this time.