Mercurial > piecrust2
view piecrust/wsgiutil/__init__.py @ 488:a00750896316
themes: Improve CLI, add `deactivate` command.
* `link` command renamed to `activate`.
* `deactivate` command removes the active theme.
* `info` command shows information about the active theme. Runs by default
when doing `chef themes`.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 22 Jul 2015 21:32:54 -0700 |
parents | d40b744a9d99 |
children | cc6f3dbe3048 |
line wrap: on
line source
from piecrust.serving.server import Server def get_app(root_dir, sub_cache_dir='prod', enable_debug_info=False): server = Server(root_dir, sub_cache_dir=sub_cache_dir, enable_debug_info=enable_debug_info) app = server.getWsgiApp() return app