From f6a2c796d701654d06c9027423df3e9e4e634c2c Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 1 Jul 2009 18:03:57 +0000 Subject: Minimal mention of new feature. --- docs/narr/templates.rst | 10 +++++++--- 1 file 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 -- cgit v1.2.3