Source

client_template_demo / template_demo / views.py

Full commit
from pyramid.view import view_config

@view_config(route_name='home', renderer='home.mako')
def home(request):
    return {}

@view_config(route_name='client_data', renderer='snippet.handlebars')
@view_config(route_name='server_data', renderer='home|snippet.mako')
@view_config(route_name='api_data', renderer='json')
def api(request):
    return {'project':'template_demo'}