- 3.8. OPT attributes
3.8.4. opt:content - 3.8.3. opt:capture
« Previous - 3.8.5. opt:dynamic
Next »
3.8.4. opt:content
The attribute takes any expression as its value. If the result is non-empty or the specified variable exists, it will be displayed in the place of default tag content:
<h1 opt:content="$article.title">Default title</h1>
If the variable $article.title is not defined, we see the text Default title.
Escaping issues
The attribute value may use the escaping modifiers e: and u:. The escaped content is used only to display the expression value. The emptiness is checked on the original value.
See also:
- 3.8.4. opt:content
3.8. OPT attributes - « Previous
3.8.3. opt:capture - Next »
3.8.5. opt:dynamic