added THEME_STATIC_DIR setting

The theme static output directory path is now customisable via settings.
i.e. you can now use 'assets' instead of 'theme'.
This commit is contained in:
Russ Webber 2013-07-18 10:36:44 +08:00 committed by Russ Webber
commit 89034f8b3f
4 changed files with 7 additions and 2 deletions

View file

@ -564,7 +564,8 @@ class StaticGenerator(Generator):
def generate_output(self, writer):
self._copy_paths(self.settings['THEME_STATIC_PATHS'], self.theme,
'theme', self.output_path, os.curdir)
self.settings['THEME_STATIC_DIR'], self.output_path,
os.curdir)
# copy all Static files
for sc in self.staticfiles:
source_path = os.path.join(self.path, sc.source_path)