Support TOML syntax for info files, in addition to YAML

Created on 7 February 2015, almost 10 years ago
Updated 2 October 2024, about 1 month ago

TOML is easier to read and less error-prone to write
https://github.com/toml-lang/toml

We could support TOML syntax for info files in Drupal 8.1.x (see #3)

TODO
Deeper Analysis of Pros/Cons

YAML

backbone:
  remote: https://github.com/jashkenas/backbone
  version: "1.2.3"
  license:
    name: MIT
    url: https://github.com/jashkenas/backbone/blob/1.2.3/LICENSE
    gpl-compatible: true
  js:
    assets/vendor/backbone/backbone-min.js: { weight: -19, minified: true }
  dependencies:
    - core/underscore

TOML.

[backbone]
  remote = "https://github.com/jashkenas/backbone"
  version = "1.2.3"
  dependencies = ["core/underscore"]

  [backbone.license]
  name = "MIT"
  url = "https://github.com/jashkenas/backbone/blob/1.2.3/LICENSE"
  gpl-compatible = true

  [backbone.js."assets/vendor/backbone/backbone-min.js"] 
  minified = true
  weight = -19

I think this TOML declaration is equivalent. White space is ignored, so I added indentation to make the nesting more clear.
I opened this for extra help: https://github.com/toml-lang/toml/issues/365

Feature request
Status

Closed: works as designed

Version

11.0 🔥

Component

other

Created by

🇫🇮Finland corbacho

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024