Added separate module for testing

This commit is contained in:
Armin Ronacher 2010-07-05 10:31:18 +02:00
parent c34b03e9a6
commit df3f8940c3
4 changed files with 44 additions and 23 deletions

View file

@ -30,7 +30,7 @@ def _register_module(module, static_path):
if state.url_prefix:
path = state.url_prefix + path
state.app.add_url_rule(path + '/<path:filename>',
'%s.static' % module.name,
endpoint='%s.static' % module.name,
view_func=module.send_static_file)
return _register