Commits

Lynn Rees committed a1af8ed

[svn]

Comments (0)

Files changed (1)

trunk/wsgiview/__init__.py

             # Load and instantiate engine
             engine = _engines[engine_name].load()
             self.engine = engine(extra_vars_func, options)
-        self.format = kw.get('format', 'html')
+        self.format, self.kw = kw.get('format', 'html'), kw
         self.fragment = kw.get('fragment', False)
         self.application, self.template = application, template
 
         format = environ.get('wsgiview.format', self.format)        
         fragment = environ.get('wsgiview.fragment', self.fragment)
         # Call plug-in's render method to return a string
-        return [engine.render(info, format, fragment, template)]    
+        return [engine.render(info, format, fragment, template, **self.kw)]