Commits

Rafael Martins committed 6136414

fix blohg freeze

  • Participants
  • Parent commits 4210bc2

Comments (0)

Files changed (2)

File blohg/__init__.py

     def jinja_loader(self):
         if self.template_folder is not None:
             return ChoiceLoader([BlohgLoader(self.template_folder),
-                                 FileSystemLoader(
-                                     os.path.join(self.root_path,
-                                                  self.template_folder))])
+                                 super(_Flask, self).jinja_loader])
 
 
 class Blohg(object):

File blohg/script.py

         return Map(rules)
 
     def handle(self, app, serve, no_index):
+        app.jinja_loader  # ugly workaround
         app.blohg.init_repo(REVISION_DEFAULT)
 
         app.url_map = self.remap_rules(app.url_map, no_index)
         @freezer.register_generator
         def static():
             """Walk the static dir and freeze everything"""
-            return static_generator(app.config['STATIC_DIR'])
+            return static_generator('static')
 
         @freezer.register_generator
         def attachments():