Exhibit/HTML Attributes
From SIMILE Widgets
Exhibit can be invoked to provide some attributes that are found within HTML tags. This is especially useful in a lens, where data needs to be styled, formatted, or linked.
For example, suppose you are working with the <img...> tag. Well, img requires a src attribute. To have Exhibit provide the content of the src attribute, merely use ex:src-content="...", substituting the ellipses with the proper expression. An example:
<img ex:src-content=".url"></img>
This technique also works for the href attribute that is used with the <a...> tag. An example:
<a ex:href-content=".url">click here</a>