Description
We can use any html5 tags. The full list of allowed tags is in your dynamic_content file.
Schema
Any attributes and child nodes are allowed.
Attributes
Any attributes.
Expression
You can use expression in tag attribute or text or tail. Format:
{{ path.to.value }}
Where path.to.value is path to the variable in the context.xml_data value.
xml_data is initialized by context.params data, but we can add any data later in components or node handlers.
Example
<div class="{{ classes.news }}">Hello, {{ name }} </div>
This is equivalent of the follow python code:
'<div class="{{ classes.news }}">Hello, {{ name }}</div>'.format(conext.xml_data['classes']['news'], context.xml_data['name'])