diff options
| author | Paul Everitt <paul@agendaless.com> | 2013-08-11 09:53:00 -0400 |
|---|---|---|
| committer | Paul Everitt <paul@agendaless.com> | 2013-08-11 09:53:00 -0400 |
| commit | ae901436a61563968cc31cc636f1fbeb5e85b528 (patch) | |
| tree | 8ce7a18dd4913f7195c5a013ab03eb64ae21180d /docs/getting_started/quick_glance/json | |
| parent | d4bd291fd5ca51bbbeec487f2011476706a5952f (diff) | |
| download | pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.tar.gz pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.tar.bz2 pyramid-ae901436a61563968cc31cc636f1fbeb5e85b528.zip | |
Per discussion with Chris, just wrap up "getting started" as the Quick Tour. Still need to do more linking and perhaps add a section on root factories, authorization, authentication.
Diffstat (limited to 'docs/getting_started/quick_glance/json')
| -rw-r--r-- | docs/getting_started/quick_glance/json/app.py | 15 | ||||
| -rw-r--r-- | docs/getting_started/quick_glance/json/hello_world.jinja2 | 10 | ||||
| -rw-r--r-- | docs/getting_started/quick_glance/json/hello_world.pt | 17 | ||||
| -rw-r--r-- | docs/getting_started/quick_glance/json/views.py | 13 |
4 files changed, 0 insertions, 55 deletions
diff --git a/docs/getting_started/quick_glance/json/app.py b/docs/getting_started/quick_glance/json/app.py deleted file mode 100644 index 950cb478f..000000000 --- a/docs/getting_started/quick_glance/json/app.py +++ /dev/null @@ -1,15 +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.add_route('hello_json', 'hello.json') - config.add_static_view(name='static', path='static') - 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/json/hello_world.jinja2 b/docs/getting_started/quick_glance/json/hello_world.jinja2 deleted file mode 100644 index f6862e618..000000000 --- a/docs/getting_started/quick_glance/json/hello_world.jinja2 +++ /dev/null @@ -1,10 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <title>Quick Glance</title> - <link rel="stylesheet" href="/static/app.css"/> -</head> -<body> -<h1>Hello {{ name }}!</h1> -</body> -</html>
\ No newline at end of file diff --git a/docs/getting_started/quick_glance/json/hello_world.pt b/docs/getting_started/quick_glance/json/hello_world.pt deleted file mode 100644 index 711054aa9..000000000 --- a/docs/getting_started/quick_glance/json/hello_world.pt +++ /dev/null @@ -1,17 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <title>Quick Glance</title> - <!-- Start Link 1 --> - <link rel="stylesheet" href="/static/app.css" /> - <!-- End Link 1 --> - <!-- Start Link 2 --> - <link rel="stylesheet" - href="${request.static_url('static/app.css')}" - /> - <!-- End Link 2 --> -</head> -<body> -<h1>Hello ${name}!</h1> -</body> -</html>
\ No newline at end of file diff --git a/docs/getting_started/quick_glance/json/views.py b/docs/getting_started/quick_glance/json/views.py deleted file mode 100644 index 583e220c7..000000000 --- a/docs/getting_started/quick_glance/json/views.py +++ /dev/null @@ -1,13 +0,0 @@ -from pyramid.view import view_config - - -@view_config(route_name='hello', renderer='hello_world.pt') -def hello_world(request): - return dict(name=request.matchdict['name']) - - -# Start View 1 -@view_config(route_name='hello_json', renderer='json') -def hello_json(request): - return [1, 2, 3] - # End View 1
\ No newline at end of file |
