ctuxboy
Hi, sure there is. ?
You can use the with
statement as follows:
<@ with 'image.jpg' @>
<img src="@{ :file }" alt="@{ :caption | stripTags }" />
<p>@{ :caption | markdown }</p>
<@ end @>
This is just an example. You can also use a variable instead of an image url. And optionally you can resize an image by passing width
and height
as well.
<@ with @{ image } { width: 400, height: 300, crop: false } @>
<img src="@{ :fileResized }" />
<p>@{ :caption | markdown }</p>
<@ end @>