Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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)],