Learn

img

Put a variable's value into an HTML image tag.

Sample Usage

{{ headshot|img }}

This will output the value of headshot within a basic HTML image tag.

Parameters

This modifier can accept zero, one, or two parameters.
The first being the width, the second is the height.

{{ headshot|img:200,300 }}
Outputs: <img src="/assets/img/headshot.jpg" width="200" height="300" />

This article was last updated on March 30th, 2016. Find an error? Please let us know!