Attribute priority

It is important to note that the order of declaration of attributes is irrelevant.

For example,

<span tal:define="usersList application/listUsers"
      tal:condition="somecondition"
      tal:repeat="user usersList"
></span>

Is exactly the same as:

<span tal:repeat="user usersList"
      tal:condition="somecondition"
      tal:define="usersList application/listUsers"
></span>

Priority is the same as described by the TAL specification:

  1. define

  2. condition

  3. repeat

  4. content or replace

  5. attributes

  6. omit-tag