Commits

victorlin committed b7f0e96

Add auto_reload option

  • Participants
  • Parent commits fd61ae0

Comments (0)

Files changed (1)

File pyramid_genshi/__init__.py

         # no i18n available, just use translator with NullTranslations
         else:
             self._translator = Translator()
-            
-        # TODO: handle auto reload here
-        self._loader = TemplateLoader(callback=self._tmpl_loaded)
+        
+        auto_reload = self.settings.get('genshi.auto_reload', True)
+        self._loader = TemplateLoader(callback=self._tmpl_loaded, 
+                                      auto_reload=auto_reload)
         self._tmpl = self.loader.load(os.path.abspath(self.path))
                 
     def translate(self, *args, **kwargs):