Update frontenddevelopers.rst

stable/0.4.x
Dave Cranwell 2014-07-10 11:51:06 +01:00
rodzic f73c5416ba
commit 5faa0652a2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -192,7 +192,7 @@ More control over the ``img`` tag
Wagtail provides two shorcuts to give greater control over the ``img`` element:
**Adding attributes to the {% image %} tag**
**1. Adding attributes to the {% image %} tag**
.. versionadded:: 0.4
@ -205,7 +205,7 @@ Extra attributes can be specified with the syntax ``attribute="value"``:
No validation is performed on attributes added in this way so it's possible to add `src`, `width`, `height` and `alt` of your own that might conflict with those generated by the tag itself.
**Generating the image "as foo" to access individual properties**
**2. Generating the image "as foo" to access individual properties**
Wagtail can assign the image data to another variable using Django's ``as`` syntax: