Skip to content

Commit

Permalink
Merge pull request #836 from antoligy/update-basic-usage-assetic
Browse files Browse the repository at this point in the history
Updating twig call to utilise asset(), to match README.md (closes #830)
  • Loading branch information
alexwilson authored Dec 11, 2016
2 parents 88e542c + 65412f2 commit 1eac259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/doc/basic-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ your newly defined ``my_thumb`` filter set immediately within a template.

.. code-block:: html+twig

<img src="{{ '/relative/path/to/image.jpg' | imagine_filter('my_thumb') }}" />
<img src="{{ asset('/relative/path/to/image.jpg') | imagine_filter('my_thumb') }}" />

.. code-block:: html+php

Expand Down Expand Up @@ -143,7 +143,7 @@ passing the template helper an options array.

{% set runtimeConfig = {"thumbnail": {"size": [50, 50] }} %}

<img src="{{ '/relative/path/to/image.jpg' | imagine_filter('my_thumb', runtimeConfig) }}" />
<img src="{{ asset('/relative/path/to/image.jpg') | imagine_filter('my_thumb', runtimeConfig) }}" />

.. code-block:: html+php

Expand Down

0 comments on commit 1eac259

Please sign in to comment.