Skip to content

Commit

Permalink
Fix variable name: pageTitle -> pageData.title
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw committed Dec 14, 2016
1 parent e11d598 commit d2c83b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions knpu/layout-template-inheritance.rst
Expand Up @@ -29,7 +29,7 @@ add ``/contact`` to the end of your URL:

{# templates/contact.twig #}

<h1>{{ pageTitle }}</h1>
<h1>{{ pageData.title }}</h1>

<p>Make some penguin noises, we're listening...</p>

Expand Down Expand Up @@ -202,7 +202,7 @@ called ``body``, since that's the name of the block in our layout:
{% extends 'layout.twig' %}

{% block body %}
<h1>{{ pageTitle }}</h1>
<h1>{{ pageData.title }}</h1>

{# ... #}
{% endblock %}
Expand Down Expand Up @@ -245,4 +245,4 @@ Phew! Let's review everything we just learned:

.. _`extends`: http://twig.sensiolabs.org/doc/tags/extends.html
.. _`block`: http://twig.sensiolabs.org/doc/tags/block.html
.. _`parent`: http://twig.sensiolabs.org/doc/functions/parent.html
.. _`parent`: http://twig.sensiolabs.org/doc/functions/parent.html

0 comments on commit d2c83b3

Please sign in to comment.