mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
[Docs] Fix typos
This commit is contained in:
@@ -83,7 +83,7 @@ Or manually like any other PHP extension:
|
|||||||
For Windows:
|
For Windows:
|
||||||
|
|
||||||
1. Setup the build environment following the `PHP documentation`_
|
1. Setup the build environment following the `PHP documentation`_
|
||||||
2. Put twig C extension source code into ``C:\php-sdk\phpdev\vcXX\x86\php-source-directory\ext\twig``
|
2. Put Twig's C extension source code into ``C:\php-sdk\phpdev\vcXX\x86\php-source-directory\ext\twig``
|
||||||
3. Use the ``configure --disable-all --enable-cli --enable-twig=shared`` command instead of step 14
|
3. Use the ``configure --disable-all --enable-cli --enable-twig=shared`` command instead of step 14
|
||||||
4. ``nmake``
|
4. ``nmake``
|
||||||
5. Copy the ``C:\php-sdk\phpdev\vcXX\x86\php-source-directory\Release_TS\php_twig.dll`` file to your PHP setup.
|
5. Copy the ``C:\php-sdk\phpdev\vcXX\x86\php-source-directory\Release_TS\php_twig.dll`` file to your PHP setup.
|
||||||
|
|||||||
@@ -192,7 +192,7 @@ How blocks work?
|
|||||||
A block provides a way to change how a certain part of a template is rendered
|
A block provides a way to change how a certain part of a template is rendered
|
||||||
but it does not interfere in any way with the logic around it.
|
but it does not interfere in any way with the logic around it.
|
||||||
|
|
||||||
Let's take the following example to illustrate how a block work and more
|
Let's take the following example to illustrate how a block works and more
|
||||||
importantly, how it does not work:
|
importantly, how it does not work:
|
||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
``from``
|
``from``
|
||||||
========
|
========
|
||||||
|
|
||||||
The ``from`` tags import :doc:`macro<../tags/macro>` names into the current
|
The ``from`` tag imports :doc:`macro<../tags/macro>` names into the current
|
||||||
namespace. The tag is documented in detail in the documentation for the
|
namespace. The tag is documented in detail in the documentation for the
|
||||||
:doc:`import<../tags/import>` tag.
|
:doc:`import<../tags/import>` tag.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
``include``
|
``include``
|
||||||
===========
|
===========
|
||||||
|
|
||||||
The ``include`` statement includes a template and return the rendered content
|
The ``include`` statement includes a template and returns the rendered content
|
||||||
of that file into the current namespace:
|
of that file into the current namespace:
|
||||||
|
|
||||||
.. code-block:: jinja
|
.. code-block:: jinja
|
||||||
|
|||||||
Reference in New Issue
Block a user