Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pyramid / docs / quick_tour / json / views.py
Size: Mime:
from pyramid.view import view_config


@view_config(route_name='hello', renderer='hello_world.jinja2')
def hello_world(request):
    return dict(name=request.matchdict['name'])


@view_config(route_name='hello_json', renderer='json')
def hello_json(request):
    return [1, 2, 3]