mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 21:07:18 +00:00
minor #3447 Adding link to RFC (ThomasLandauer)
This PR was squashed before being merged into the 2.x branch.
Discussion
----------
Adding link to RFC
Reason for rewording the `twig/extra-bundle` part: It was not clear what "use" means here:
> Then, use the twig/extra-bundle on Symfony projects
Commits
-------
56fd57b3 Adding link to RFC
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
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:
|
||||
The ``data_uri`` filter generates a URL using the data scheme as defined in
|
||||
`RFC 2397`_:
|
||||
|
||||
.. code-block:: html+twig
|
||||
|
||||
@@ -32,8 +32,8 @@ The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||
|
||||
$ composer require twig/html-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explicitly on the Twig environment::
|
||||
On Symfony projects, install the ``twig/extra-bundle``: ``composer require twig/extra-bundle``
|
||||
Otherwise, add the extension explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Html\HtmlExtension;
|
||||
|
||||
@@ -42,7 +42,7 @@ The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||
|
||||
.. note::
|
||||
|
||||
The filter does not perform any length validation on purpose (limits depends
|
||||
The filter does not perform any length validation on purpose (limit depends
|
||||
on the usage context), validation should be done before calling this filter.
|
||||
|
||||
Arguments
|
||||
@@ -50,3 +50,5 @@ Arguments
|
||||
|
||||
* ``mime``: The mime type
|
||||
* ``parameters``: An array of parameters
|
||||
|
||||
.. _RFC 2397: https://tools.ietf.org/html/rfc2397
|
||||
|
||||
Reference in New Issue
Block a user