Voog.com

image_data

It generates (like image tag) HTML IMG tag for given image path or object (e.g. Asset, Image) but renders data to data attributes. Site root prefix will be added automatically. Additional attributes  may be supplied (see image tag).

{% image_data 'images/image_path.png' %}
#=> <img data-src=//site_root/images/image_path" />
{% image_data object %}
#=> <img data-src=//site_root/photos/photo_path.jpg" data-srcset="..." data-sizes="..." />