However, Jael adds two major changes.

Attributes

Secondly, whereas in HTML, the values of attributes can only be strings, Jael allows for their values to be any Dart expression:

  • Maps: Serialized as though they were style attributes.
  • Iterables: Joined by a space, like attributes.

In case the name of your attribute is not a valid Dart identifier, you can wrap it with quotes, and it will still be processed as per normal: