diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-11-25 13:29:31 -0800 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-11-25 13:29:31 -0800 |
| commit | f5355df850ff5abb2e184f74f3acc1bd193d5d72 (patch) | |
| tree | dd139dd1dd0faf426b33d611176c8ecb7bd2e23e /docs/tutorials/wiki/definingviews.rst | |
| parent | 9495e5d7e65b138b0b209635efd00ae02c2afd27 (diff) | |
| download | pyramid-f5355df850ff5abb2e184f74f3acc1bd193d5d72.tar.gz pyramid-f5355df850ff5abb2e184f74f3acc1bd193d5d72.tar.bz2 pyramid-f5355df850ff5abb2e184f74f3acc1bd193d5d72.zip | |
Fix template to include either the page name or a title for the title tag
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index 81ef4f5c4..bd8dc6ecf 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -290,7 +290,7 @@ We can do this via :term:`METAL` macros and slots. - The cookiecutter defined a macro named ``layout`` (line 1). This macro consists of the entire template. -- We changed the ``title`` tag to use the ``name`` attribute of a ``page`` object (lines 11-12). +- We changed the ``title`` tag to use the ``name`` attribute of a ``page`` object, or if it does not exist then the page title (lines 11-12). - The cookiecutter defined a macro customization point or `slot` (line 36). This slot is inside the macro ``layout``. Therefore it can be replaced by content, customizing the macro. |
