diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-07-01 18:03:57 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-07-01 18:03:57 +0000 |
| commit | f6a2c796d701654d06c9027423df3e9e4e634c2c (patch) | |
| tree | 1300fbc6c266e34d09c3e4fb8ca7fe15a9f46888 | |
| parent | 8c5923f9a4232d18dbc442a9fa53561f8857a7ce (diff) | |
| download | pyramid-f6a2c796d701654d06c9027423df3e9e4e634c2c.tar.gz pyramid-f6a2c796d701654d06c9027423df3e9e4e634c2c.tar.bz2 pyramid-f6a2c796d701654d06c9027423df3e9e4e634c2c.zip | |
Minimal mention of new feature.
| -rw-r--r-- | docs/narr/templates.rst | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/narr/templates.rst b/docs/narr/templates.rst index 245c1919d..c3a49da68 100644 --- a/docs/narr/templates.rst +++ b/docs/narr/templates.rst @@ -53,9 +53,13 @@ a string body) is the template *path*. In the example above, the path ``templates/foo.pt`` is *relative*. Relative to what, you ask? Relative to the directory in which the ``views.py`` file which names it lives, which is usually the :mod:`repoze.bfg` application's -:term:`package` directory. A path passed to -``render_template_to_response`` can also be absolute (starting with a -slash on UNIX or a drive letter prefix on Windows). +:term:`package` directory. + +A path passed to ``render_template_to_response`` can also be absolute +(starting with a slash on UNIX or a drive letter prefix on Windows). +It can also be a "specification" in the form +``another.dotted.package_name:relative/path`` if the resources lives in +another package. ``render_template_to_response`` always returns a Response object which has a *status code* of ``200 OK`` and a *content-type* of |
