PTML doc: attribute categories are indepenent

This commit is contained in:
Pietro Fezzardi
2025-09-09 16:49:08 +02:00
committed by Alessandro Di Federico
parent ccb0180f13
commit 82d0a17fe0
+3
View File
@@ -39,6 +39,9 @@ Attributes defined in PTML can be organize in the following categories:
2. Navigation attributes: used for navigation purposes (e.g., going from a function call to its definition).
3. Action attributes: used to provide a context for certain *actions* (e.g., `rename`) on a certain portion of text.
Each and every one of these categories of attributes is designed to provide separate functionality than the others, and it's meant to be entirely orthogonal and decoupled from the others.
This is very important because in this way both PTML generators and PTML consumers can opportunistically opt in to each attribute category and the associated functionality, without having to support all the attributes categories.
## Syntax attributes
### `data-scope`