This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.

Overview

This tag has been depreciated and replaced with img_tag.

Inserts an image tag for an image URL.


Attributes

This filter has no attributes.


Examples

Basic Usage

{{ 'http://foo.com/hi.jpg' | image_tag }} #--> <img alt="Hi" src="http://foo.com/hi.jpg" />

Defining Custom Alt Texts

The image tag automatically creates an alt text attribute based on the image file's name. The alt tag can be overridden if desired:

{{ 'http://foo.com/hi.jpg' | image_tag: 'HI!' }} #--> <img alt="HI!" src="http://foo.com/hi.jpg" />

image_tag and Variables

image_tag can also be used for variables:

{{ feed.image_url | image_tag }}

FAQ

This filter does not have any FAQs


Related Topics

Document generated by Confluence on Feb 12, 2013 09:09