Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
40 lines
955 B
ReStructuredText
40 lines
955 B
ReStructuredText
Twig Extensions
|
|
===============
|
|
|
|
.. toctree::
|
|
:hidden:
|
|
|
|
text
|
|
i18n
|
|
intl
|
|
array
|
|
date
|
|
|
|
The Twig Extensions is a library that provides several useful extensions
|
|
for Twig. You can find it's code at `GitHub.com/twigphp/Twig-extensions`_.
|
|
|
|
.. _extensions-install:
|
|
|
|
Installation
|
|
------------
|
|
|
|
This library can be installed via Composer running the following from the
|
|
command line:
|
|
|
|
.. code-block:: bash
|
|
|
|
composer require twig/extensions
|
|
|
|
* :doc:`Text <text>`: Provides useful filters for text manipulation;
|
|
|
|
* :doc:`I18n <i18n>`: Adds internationalization support via the ``gettext``
|
|
library;
|
|
|
|
* :doc:`Intl <intl>`: Adds a filter for localization of ``DateTime`` objects, numbers and currency;
|
|
|
|
* :doc:`Array <array>`: Provides useful filters for array manipulation;
|
|
|
|
* :doc:`Date <date>`: Adds a filter for rendering the difference between dates.
|
|
|
|
.. _`GitHub.com/twigphp/Twig-extensions`: https://github.com/twigphp/Twig-extensions
|