Skip to content
Go to file
Cannot retrieve contributors at this time
executable file 19 lines (16 sloc) 649 Bytes
#!/usr/bin/env python
from brubeck.request_handling import Brubeck
from brubeck.templating import Jinja2Rendering, load_jinja2_env
from brubeck.connections import Mongrel2Connection
import sys
class DemoHandler(Jinja2Rendering):
def get(self):
name = self.get_argument('name', 'dude')
context = {
'name': name,
return self.render_template('success.html', **context)
app = Brubeck(msg_conn=Mongrel2Connection('tcp://', 'tcp://'),
handler_tuples=[(r'^/brubeck', DemoHandler)],
You can’t perform that action at this time.