Template directive: images

The @images directive is used to link to images within the res/assets directory. This means that the path supplied must be a subpath of the res/assets/images directory. This directory is the custom directory reserved for custom images. The example below shows how the directive can be applied in template files.
images()
  <img src="@images('myimage.jpg')">
                
Resolved as:
  <img src="{domain}/res/assets/images/image.jpg"/>
                
Images may be used along with the data-src attribute which is reserved for lazy-loading images within the web application. This attribute is handled through the core javascript resource files loaded by default. It automatically sets a background-image style property for non-image tags while image relative tags are excluded.