diff options
| author | Steve Piercy <web@stevepiercy.com> | 2016-06-16 11:01:25 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2016-06-16 11:01:25 -0700 |
| commit | 715ec5efbc3fc46e8e1cfef458667bded49d243e (patch) | |
| tree | 72e29b69170d0ce9afe14ff093371a054538b422 /docs/quick_tour/static_assets | |
| parent | 32697a643949121fd7f4f81c364c365b9c55107f (diff) | |
| download | pyramid-715ec5efbc3fc46e8e1cfef458667bded49d243e.tar.gz pyramid-715ec5efbc3fc46e8e1cfef458667bded49d243e.tar.bz2 pyramid-715ec5efbc3fc46e8e1cfef458667bded49d243e.zip | |
Quick Tour - static_assets - closes #2648
- swap contents of jinja2 templates
- use __main__ to specify package
- carry forward template to json step
- use :language: python directive for correct syntax highlighting
Diffstat (limited to 'docs/quick_tour/static_assets')
| -rw-r--r-- | docs/quick_tour/static_assets/hello_world.jinja2 | 2 | ||||
| -rw-r--r-- | docs/quick_tour/static_assets/hello_world_static.jinja2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/quick_tour/static_assets/hello_world.jinja2 b/docs/quick_tour/static_assets/hello_world.jinja2 index 0fb2ce296..a55865231 100644 --- a/docs/quick_tour/static_assets/hello_world.jinja2 +++ b/docs/quick_tour/static_assets/hello_world.jinja2 @@ -2,7 +2,7 @@ <html lang="en"> <head> <title>Hello World</title> - <link rel="stylesheet" href="/static/app.css"/> + <link rel="stylesheet" href="{{ request.static_url('__main__:static/app.css') }}"/> </head> <body> <h1>Hello {{ name }}!</h1> diff --git a/docs/quick_tour/static_assets/hello_world_static.jinja2 b/docs/quick_tour/static_assets/hello_world_static.jinja2 index 4fb9be074..0fb2ce296 100644 --- a/docs/quick_tour/static_assets/hello_world_static.jinja2 +++ b/docs/quick_tour/static_assets/hello_world_static.jinja2 @@ -2,7 +2,7 @@ <html lang="en"> <head> <title>Hello World</title> - <link rel="stylesheet" href="{{ request.static_url('static/app.css') }}"/> + <link rel="stylesheet" href="/static/app.css"/> </head> <body> <h1>Hello {{ name }}!</h1> |
