src
An HTML content command for setting the "src" attribute on an element.
The value of the "src" depends on what the type of this command's primary attribute's resolved value is. If the resolved value is a File, the data is converted into a data URI which is used as the value. If the resolved value is a String, it is directly used as the value.
This command has a priority of 15.
Examples
If you have an image File in the variable context, src
can be used to display that image in HTML content:
<img dyn-src="drawing"/>
If you wish to display some external image instead and linking to it directly is fine, have the image's URL in a String and give that to src
:
<img dyn-src="drawingURL"/>