diff options
Diffstat (limited to 'docs/quick_tour/templating/views.py')
| -rw-r--r-- | docs/quick_tour/templating/views.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/quick_tour/templating/views.py b/docs/quick_tour/templating/views.py new file mode 100644 index 000000000..6c7846efa --- /dev/null +++ b/docs/quick_tour/templating/views.py @@ -0,0 +1,8 @@ +from pyramid.view import view_config + + +# Start View 1 +@view_config(route_name='hello', renderer='hello_world.pt') +def hello_world(request): + return dict(name=request.matchdict['name']) + # End View 1
\ No newline at end of file |
