mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-04 22:47:21 +00:00
[Doc] Fix some typos
This commit is contained in:
+3
-3
@@ -270,11 +270,11 @@ allows you to build a base "skeleton" template that contains all the common
|
|||||||
elements of your site and defines **blocks** that child templates can
|
elements of your site and defines **blocks** that child templates can
|
||||||
override.
|
override.
|
||||||
|
|
||||||
Sounds complicated but is very basic. It's easiest to understand it by
|
Sounds complicated but is very basic. It's easier to understand it by
|
||||||
starting with an example.
|
starting with an example.
|
||||||
|
|
||||||
Let's define a base template, ``base.html``, which defines a simple HTML
|
Let's define a base template, ``base.html``, which defines a simple HTML
|
||||||
skeleton document that you might use for a simple two-column page:
|
skeleton document that you might use for a simple two-columns page:
|
||||||
|
|
||||||
.. code-block:: html+jinja
|
.. code-block:: html+jinja
|
||||||
|
|
||||||
@@ -526,7 +526,7 @@ but exists for completeness' sake. The following operators are supported:
|
|||||||
* ``-``: Substracts the second number from the first one. ``{{ 3 - 2 }}`` is
|
* ``-``: Substracts the second number from the first one. ``{{ 3 - 2 }}`` is
|
||||||
``1``.
|
``1``.
|
||||||
|
|
||||||
* ``/``: Divides two numbers. The return value will be a floating point
|
* ``/``: Divides two numbers. The returned value will be a floating point
|
||||||
number. ``{{ 1 / 2 }}`` is ``{{ 0.5 }}``.
|
number. ``{{ 1 / 2 }}`` is ``{{ 0.5 }}``.
|
||||||
|
|
||||||
* ``%``: Calculates the remainder of an integer division. ``{{ 11 % 7 }}`` is
|
* ``%``: Calculates the remainder of an integer division. ``{{ 11 % 7 }}`` is
|
||||||
|
|||||||
Reference in New Issue
Block a user