diff --git a/hyde/server.py b/hyde/server.py index ffa56b2..4b7d8f7 100644 --- a/hyde/server.py +++ b/hyde/server.py @@ -70,6 +70,10 @@ class HydeRequestHandler(SimpleHTTPRequestHandler): res = site.content.resource_from_relative_deploy_path(path + '.' + ext) if res: break + for ext in site.config.urlcleaner.strip_extensions: + new_path = site.config.deploy_root_path.child(path + '.' + ext) + if File(new_path).exists: + return new_path else: res = site.content.resource_from_relative_deploy_path(path)