img
Creates an image tag for the first image file matching the specified glob pattern. The image can also be cropped by defining a maximum width and height.
<@ img { options } @>
Options
- file: false String|false
- The path to the file to be placed. In case a glob pattern is provided, the first match is used.
- width: false Integer|false
- The optional maximum width of the placed image.
- height: false Integer|false
- The optional maximum height of the placed image.
- crop: false Boolean
- Defines whether the placed image is cropped or scaled to fit the specified height and width.
- class: false String|false
- An optional class for the
<img>
tag.