general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
114 stars 34 forks source link

passing extra user parameters to render_autoindex(...) #24

Closed ArashJavan closed 9 years ago

ArashJavan commented 9 years ago

hi,

as i saw in the code 'render_autoindex' calls 'render_template' and passes its own context-dict , so if a user want to make his own template and pass his own parameters two template it crashes.


return autoindex.render_autoindex(path='/', endpoint = '.app_root', template='myui.html', form=form)

the paramter 'form' throws an exception because it cannot be added to the 'render_autoindex'

ArashJavan commented 9 years ago

my fault did not see template_context parameter