Switched the default rendering engine to Kajiki. Why fight it?

This commit is contained in:
Jonathan LaCour
2010-10-12 11:48:47 -04:00
parent 33719028fb
commit 293be70669
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ def error_for(field):
class Pecan(object): class Pecan(object):
def __init__(self, root, def __init__(self, root,
renderers = renderers, renderers = renderers,
default_renderer = 'genshi', default_renderer = 'kajiki',
template_path = 'templates', template_path = 'templates',
hooks = []): hooks = []):

View File

@@ -8,10 +8,10 @@ class SampleForm(Schema):
class RootController(object): class RootController(object):
@expose('kajiki:index.html') @expose('index.html')
def index(self, name='', age=''): def index(self, name='', age=''):
return dict(errors=request.validation_error, name=name, age=age) return dict(errors=request.validation_error, name=name, age=age)
@expose('kajiki:success.html', schema=SampleForm(), error_handler='index') @expose('success.html', schema=SampleForm(), error_handler='index')
def handle_form(self, name, age): def handle_form(self, name, age):
return dict(name=name, age=age) return dict(name=name, age=age)