TOML

- Files
.toml- Formats as
- Ur
- Lints
- Every rule that reads its code
- In
ur.toml [format.toml]
Formatted
cart.toml, as written# What a cart holds: each item's name, price, and quantity, and the codes that discount them.
[cart]
items = [{ name = "hammer", price = 12.5, quantity = 1 }, { name = "nail", price = 0.05, quantity = 100 }]
codes = ["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"]
ur format --style ur cart.toml# What a cart holds: each item's name, price, and quantity, and the codes that
# discount them.
[cart]
items = [{ name = "hammer", price = 12.5, quantity = 1 },
{ name = "nail", price = 0.05, quantity = 100 }]
codes = ["SPRING", "WELCOME", "FRIENDS-AND-FAMILY"]
Versions
Ur reads TOML as the profiles below name it. Name the versions a project targets in target; without it, Ur reads toml-1.0.
| Profile | Dialect |
|---|---|
toml-1.0 | TOML |
toml-1.1 | TOML |