diff piecrust/serving/util.py @ 663:3ceeca7bb71c

themes: Add support for a `--theme` argument to `chef`.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 01 Mar 2016 22:27:28 -0800
parents 657384f08ca3
children 81d9c3a3a0b5
line wrap: on
line diff
--- a/piecrust/serving/util.py	Tue Mar 01 22:27:04 2016 -0800
+++ b/piecrust/serving/util.py	Tue Mar 01 22:27:28 2016 -0800
@@ -16,9 +16,9 @@
 logger = logging.getLogger(__name__)
 
 
-def get_app_for_server(root_dir, debug=False, sub_cache_dir=None,
-                       root_url='/'):
-    app = PieCrust(root_dir=root_dir, debug=debug)
+def get_app_for_server(root_dir, debug=False, theme_site=False,
+                       sub_cache_dir=None, root_url='/'):
+    app = PieCrust(root_dir=root_dir, debug=debug, theme_site=theme_site)
     if sub_cache_dir:
         app._useSubCacheDir(sub_cache_dir)
     app.config.set('site/root', root_url)