The name of attributes are not the same because if they were the resulting HTML documents will not be well formed. The list of attributes with their equivalences are:
ZPT attribute name | ZPT-JS attribute name | Description |
---|---|---|
metal:define-macro | data-define-macro | Defines a macro |
metal:define-slot | data-define-slot | Defines a slot to make possible to fill it later |
metal:fill-slot | data-fill-slot | Fills a slot |
metal:use-macro | data-use-macro | Invokes a macro |
tal:attributes | data-attributes | Replace the value of one or more attributes |
tal:condition | data-condition | Display or hide nodes depending on a condition |
tal:content | data-content | Replace the content of the element |
tal:define | data-define | Define one or more variables |
tal:on-error | data-on-error | Handle errors |
tal:omit-tag | data-omit-tag | Remove an element, leaving the content of the element |
tal:repeat | data-repeat | Repeat an element |
tal:replace | data-replace | Replace the content of an element and remove the element leaving the content |
ZPT-JS allows using the original tags from ZPT, even customizing them totally. See Tags in context page for details.
Important: after this point we will refer to tags as the ZPT-JS tag name.