[fix] strip (/ ) from route when rendering page

This commit is contained in:
Anand Doshi 2015-01-09 14:24:13 +05:30
parent 8f3643a57c
commit cf23ef1eb3

View file

@ -17,7 +17,7 @@ class PageNotFoundError(Exception): pass
def render(path, http_status_code=None):
"""render html page"""
path = resolve_path(path.strip("/"))
path = resolve_path(path.strip("/ "))
try:
data = render_page(path)