mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
minor #3241 Remove versionadded in 2.x in 3.x doc (fancyweb)
This PR was merged into the 3.x branch.
Discussion
----------
Remove versionadded in 2.x in 3.x doc
Commits
-------
e6d3402c Remove versionadded in 2.x in 3.x doc
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
``country_name``
|
||||
================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``country_name`` filter was added in Twig 2.12.
|
||||
|
||||
The ``country_name`` filter returns the country name given its ISO-3166
|
||||
two-letter code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``currency_name``
|
||||
=================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``currency_name`` filter was added in Twig 2.12.
|
||||
|
||||
The ``currency_name`` filter returns the currency name given its three-letter
|
||||
code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``currency_symbol``
|
||||
===================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``currency_symbol`` filter was added in Twig 2.12.
|
||||
|
||||
The ``currency_symbol`` filter returns the currency symbol given its three-letter
|
||||
code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``data_uri``
|
||||
============
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``data_uri`` filter was added in Twig 2.12.
|
||||
|
||||
The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||
2397:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``format_currency``
|
||||
===================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``format_currency`` filter was added in Twig 2.12.
|
||||
|
||||
The ``format_currency`` filter formats a number as a currency:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``format_date``
|
||||
===============
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``format_date`` filter was added in Twig 2.12.
|
||||
|
||||
The ``format_date`` filter formats a date. It behaves in the exact same way as
|
||||
the ``format_datetime`` filter, but without the time.
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``format_datetime``
|
||||
===================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``format_datetime`` filter was added in Twig 2.12.
|
||||
|
||||
The ``format_datetime`` filter formats a date time:
|
||||
|
||||
public function formatDateTime(Environment $env, $date, ?string $dateFormat = 'medium', ?string $timeFormat = 'medium', string $pattern = '', $timezone = null, string $calendar = 'gregorian', string $locale = null): string
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``format_number``
|
||||
=================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``format_number`` filter was added in Twig 2.12.
|
||||
|
||||
The ``format_number`` filter formats a number:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``format_time``
|
||||
===============
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``format_time`` filter was added in Twig 2.12.
|
||||
|
||||
The ``format_time`` filter formats a time. It behaves in the exact same way as
|
||||
the ``format_datetime`` filter, but without the date.
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``html_to_markdown``
|
||||
====================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``html_to_markdown`` filter was added in Twig 2.12.
|
||||
|
||||
The ``html_to_markdown`` filter converts a block of HTML to Markdown:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``inky_to_html``
|
||||
================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``inky_to_html`` filter was added in Twig 2.12.
|
||||
|
||||
The ``inky_to_html`` filter processes an `inky email template
|
||||
<https://github.com/zurb/inky>`_:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``inline_css``
|
||||
==============
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``inline_css`` filter was added in Twig 2.12.
|
||||
|
||||
The ``inline_css`` filter inline CSS styles in HTML documents:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``language_name``
|
||||
=================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``language_name`` filter was added in Twig 2.12.
|
||||
|
||||
The ``language_name`` filter returns the language name given its two-letter
|
||||
code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``locale_name``
|
||||
===============
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``locale_name`` filter was added in Twig 2.12.
|
||||
|
||||
The ``locale_name`` filter returns the locale name given its two-letter
|
||||
code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``markdown_to_html``
|
||||
====================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``markdown_to_html`` filter was added in Twig 2.12.
|
||||
|
||||
The ``markdown_to_html`` filter converts a block of Markdown to HTML:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``sort``
|
||||
========
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``arrow`` argument was added in Twig 2.12.
|
||||
|
||||
The ``sort`` filter sorts an array:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``timezone_name``
|
||||
=================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``timezone_name`` filter was added in Twig 2.12.
|
||||
|
||||
The ``timezone_name`` filter returns the timezone name given a timezone identifier:
|
||||
|
||||
.. code-block:: twig
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``u``
|
||||
=====
|
||||
|
||||
.. versionadded:: 2.12.1
|
||||
The ``u`` filter was added in Twig 2.12.1.
|
||||
|
||||
The ``u`` filter wraps a text in a Unicode object (a `Symfony UnicodeString
|
||||
instance <https://symfony.com/doc/current/components/string.html>`_) that
|
||||
exposes methods to "manipulate" the string.
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``country_timezones``
|
||||
=====================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``country_timezones`` function was added in Twig 2.12.
|
||||
|
||||
The ``country_timezones`` function returns the names of the timezones associated
|
||||
with a given country code:
|
||||
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
``html_classes``
|
||||
================
|
||||
|
||||
.. versionadded:: 2.12
|
||||
The ``html_classes`` function was added in Twig 2.12.
|
||||
|
||||
The ``html_classes`` function returns a string by conditionally joining class
|
||||
names together:
|
||||
|
||||
|
||||
@@ -105,12 +105,6 @@ When calling ``import`` or ``from`` from a ``macro`` tag, the imported macros
|
||||
are only defined in the current macro and they override macros defined at the
|
||||
template level with the same names.
|
||||
|
||||
.. note::
|
||||
|
||||
Before Twig 2.11, it was possible to use macros imported in a block in a
|
||||
"sub-block". When upgrading to 2.11, you need to either move the import in
|
||||
the global scope or reimport the macros explicitly in the "sub-blocks".
|
||||
|
||||
Checking if a Macro is defined
|
||||
------------------------------
|
||||
|
||||
|
||||
@@ -832,9 +832,6 @@ the modifiers on one side of a tag or on both sides:
|
||||
|
||||
{# output will be <div><strong>foo bar</strong></div> #}
|
||||
|
||||
The ``apply`` tag was introduced in Twig 2.9; use the ``filter`` tag with
|
||||
previous versions.
|
||||
|
||||
Extensions
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user