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):
def __init__(self, root,
renderers = renderers,
default_renderer = 'genshi',
default_renderer = 'kajiki',
template_path = 'templates',
hooks = []):

View File

@@ -8,10 +8,10 @@ class SampleForm(Schema):
class RootController(object):
@expose('kajiki:index.html')
@expose('index.html')
def index(self, name='', 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):
return dict(name=name, age=age)