diff options
Diffstat (limited to 'docs/getting_started/quick_glance/jinja2')
| -rw-r--r-- | docs/getting_started/quick_glance/jinja2/app.py | 11 | ||||
| -rw-r--r-- | docs/getting_started/quick_glance/jinja2/hello_world.jinja2 | 8 | ||||
| -rw-r--r-- | docs/getting_started/quick_glance/jinja2/views.py | 8 |
3 files changed, 0 insertions, 27 deletions
diff --git a/docs/getting_started/quick_glance/jinja2/app.py b/docs/getting_started/quick_glance/jinja2/app.py deleted file mode 100644 index 83af219db..000000000 --- a/docs/getting_started/quick_glance/jinja2/app.py +++ /dev/null @@ -1,11 +0,0 @@ -from wsgiref.simple_server import make_server -from pyramid.config import Configurator - -if __name__ == '__main__': - config = Configurator() - config.add_route('hello', '/howdy/{name}') - config.include('pyramid_jinja2') - config.scan('views') - app = config.make_wsgi_app() - server = make_server('0.0.0.0', 6543, app) - server.serve_forever()
\ No newline at end of file diff --git a/docs/getting_started/quick_glance/jinja2/hello_world.jinja2 b/docs/getting_started/quick_glance/jinja2/hello_world.jinja2 deleted file mode 100644 index e177744b5..000000000 --- a/docs/getting_started/quick_glance/jinja2/hello_world.jinja2 +++ /dev/null @@ -1,8 +0,0 @@ -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <title>Hello World</title> -</head> -<body> -<h1>Hello {{ name }}!</h1> -</body> -</html>
\ No newline at end of file diff --git a/docs/getting_started/quick_glance/jinja2/views.py b/docs/getting_started/quick_glance/jinja2/views.py deleted file mode 100644 index 916cdc720..000000000 --- a/docs/getting_started/quick_glance/jinja2/views.py +++ /dev/null @@ -1,8 +0,0 @@ -from pyramid.view import view_config - - -# Start View 1 -@view_config(route_name='hello', renderer='hello_world.jinja2') -# End View 1 -def hello_world(request): - return dict(name=request.matchdict['name']) |
