Added possibility to overwrite app_dirname.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 21:26:47 +0000 (23:26 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 5 May 2015 21:29:45 +0000 (23:29 +0200)
django_template_backend_genshi/__init__.py

index 3ce795cb38752226433abb4e1955b339cdfca9eb..85c338f3a4a2ecdee739554eec11c0e278203a31 100644 (file)
@@ -11,6 +11,7 @@ class GenshiEngine(django.template.backends.base.BaseEngine):
     def __init__(self, params):
         params = params.copy()
         options = params.pop('OPTIONS').copy()
+        self.app_dirname = options.get('app_dirname', self.app_dirname)
         super(GenshiEngine, self).__init__(params)
         loader = genshi.template.TemplateLoader(self.template_dirs, auto_reload=options['auto_reload'])
         self.loader = loader