diff options
| author | Karl O. Pinc <kop@meme.com> | 2013-10-02 11:31:47 -0500 |
|---|---|---|
| committer | Karl O. Pinc <kop@meme.com> | 2013-10-02 11:31:47 -0500 |
| commit | f24ac4c471a458aec0cde232925c8fab652bafcc (patch) | |
| tree | 0c251235559fb00564294c8534372fabd46bfc23 | |
| parent | ae5f2b9da9583114f3f5a6f08497e5a248e3e960 (diff) | |
| download | pyramid-f24ac4c471a458aec0cde232925c8fab652bafcc.tar.gz pyramid-f24ac4c471a458aec0cde232925c8fab652bafcc.tar.bz2 pyramid-f24ac4c471a458aec0cde232925c8fab652bafcc.zip | |
Docs: project.rst: Eliminate reduncency and better explain renderer.
| -rw-r--r-- | docs/narr/project.rst | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst index 602f15fef..09e07ee6d 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -871,18 +871,17 @@ specification` that specifies the ``mytemplate.pt`` file within the ``templates`` directory of the ``myproject`` package. The asset specification could have also been specified as ``myproject:templates/mytemplate.pt``; the leading package name and colon is -optional. The template file it actually points to is a :term:`Chameleon` ZPT -template file. +optional. The template file pointed to is a :term:`Chameleon` ZPT +template file (``templates/my_template.pt``). This view callable function is handed a single piece of information: the :term:`request`. The *request* is an instance of the :term:`WebOb` ``Request`` class representing the browser's request to our server. -This view returns a dictionary. When this view is invoked, a -:term:`renderer` converts the dictionary returned by the view into HTML, and -returns the result as the :term:`response`. This view is configured to -invoke a renderer which uses a :term:`Chameleon` ZPT template -(``templates/my_template.pt``). +This view is configured to invoke a :term;`renderer` on a template. The +dictionary the view returns (on line 6) provides the value the renderer +substitutes into the template when generating HTML. The renderer then +returns the HTML in a :term:`response`. See :ref:`views_which_use_a_renderer` for more information about how views, renderers, and templates relate and cooperate. |
