Image include
Image include¶
To create test cases for images, we recommend using an image hotlinking service like Unsplash or placeholder.com.
<img src="{{ imageSmall.url }}" data-src="{{ imageLarge.url }}" width="{{ width }}" height="{{ height }}" alt="{{ imageLarge.alt }}" class="{{ classList }} lazyload">
YAML:
context:
width: '720'
height: '400'
imageSmall:
url: https://source.unsplash.com/pZ-XFIrJMtE/360x200
imageLarge:
url: https://source.unsplash.com/pZ-XFIrJMtE/720x400
Last update: 2024-12-11