from pyramid.view import view_config @view_config(route_name='home', renderer='cleanup_html:templates/mytemplate.jinja2') def my_view(request): return {'project': 'cleanup_html'}