view piecrust/wsgiutil/__init__.py @ 698:33ab9badfd7a

render: Change how we store render passes info. Previously we used a dictionary with integers as keys, which doesn't go well with JSON serialization. Now replace with an array of fixed length with items that are `None` by default.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 23 Mar 2016 16:39:22 -0700
parents 81d9c3a3a0b5
children b4156f5d4368
line wrap: on
line source

from piecrust.serving.server import WsgiServer


def get_app(root_dir, cache_key='prod', enable_debug_info=False):
    app = WsgiServer(root_dir,
                     cache_key=cache_key,
                     enable_debug_info=enable_debug_info)
    return app