Skip to content

Commit

Permalink
bug #5058 Fix: assets_version instead of asset_version (sebastianblum)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5058).

Discussion
----------

Fix: assets_version instead of asset_version

The name of the function is assets_version, see
https://github.com/symfony/symfony/blob/2.7/src/Symfony/Bundle/TwigBundle/Extension/AssetsExtension.php

Commits
-------

40363c9 Fix: assets_version instead of asset_version
  • Loading branch information
wouterj committed Mar 29, 2015
2 parents d43b845 + 40363c9 commit 6ba6ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ Returns a public path to ``path``, which takes into account the base path set
for the package and the URL path. More information in
:ref:`book-templating-assets`.

asset_version
~~~~~~~~~~~~~
assets_version
~~~~~~~~~~~~~~

.. code-block:: jinja
{{ asset_version(packageName) }}
{{ assets_version(packageName) }}
``packageName``
**type**: ``string`` | ``null`` **default**: ``null``
Expand Down

0 comments on commit 6ba6ffd

Please sign in to comment.