'|configsdir=$(configsdir)|' \
'|bindir=$(bindir)|' \
'|datadir=$(datadir)|' \
- '|templatesdir=$(templatesdir)|' \
'|webrootdir=$(webrootdir)|'
SED_PROCESS = \
# #
###############################################################################
+import os.path
import tornado.web
from . import backend
# Enable compressed output
"compress_response" : True,
- # Serve static files from our webroot
- "static_path" : WEBROOTDIR,
-
# Templates
- "template_path" : TEMPLATESDIR,
+ "template_path" : WEBROOTDIR,
+
+ # Serve assets
+ "static_path" : os.path.join(WEBROOTDIR, "assets"),
+ "static_url_prefix" : "/assets/",
# Use Cross-Site-Request-Forgery protection
"xsrf_cookies" : True,
PACKAGE_NAME = "@PACKAGE_NAME@"
PACKAGE_VERSION = "@PACKAGE_VERSION@"
-TEMPLATESDIR = "@templatesdir@"
WEBROOTDIR = "@webrootdir@"