I want to use pyramid's request.route_path() to make links that are relative... ie, that do not start with "/".
My route is declared thus: config.add_route('render_page', '/{page}.html') My view: @view_config(route_name='render_page') def render_template(request): page = request.matchdict.get('page', 'welcome') return render_to_response('opile:templates/%s.html.mako' % page, request=request) running: request.route_path('render_page', page='examples') gives me "/examples.html" but I want "examples.html". Likewise, for paths that are one layer down, I want links that start with "../" rather than "/". Does Pyramid support this configuration? I can't find anything in the docs. (Why would I want to do this? I'm using Pyramid to generate what will become a static-html "site" that can be opened on a filesystem, so there is no "/". I can always intercept and modify the output, but I'd prefer to do it "right".) -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.