TOML

TOML
پسوند(های) نام پرونده
.toml
نوع رسانهٔ اینترنتی
not registered
توسعه‌دهندهتامس پرستن-ورنر
ارائهٔ اولیه۲۳ فوریه ۲۰۱۳؛ ۱۳ سال پیش (۲۰۱۳-23}})
آخرین نسخه
v0.5.0
(۱۰ ژوئیه ۲۰۱۸؛ ۷ سال پیش (۲۰۱۸-10}}))
گونهData interchange
آزاد؟Yes
وبگاه

TOML یک قالب پرونده پیکربندی که به هدف سادگی در خوانایی به کمک داشتن معانی مشخص با هدف «کمینه» و مینیمال بودن ارائه شده است. این قالب طراحی شده است که نگاشتی غیر قابل گمراه شدن به آرایه انجمنی باشد.

نام این قالب مختصر "Tom's Obvious, Minimal Language" زبان مینیمال، اشاره به نام تامس پرستن-ورنر است.

این قالب در تعدادی از پروژه‌های نرم‌افزاری استفاده شده است و تعداد زیادی از زبان‌های برنامه‌نویسی پیاده‌سازی شده است.

این قالب به مانند فایل INI است ولی با داشتن استانداردی رسمی‌تر.

نمونه‌ای از این قالب

# This is a TOML document.

title = "TOML Example"

[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates

[database]
server = "192.168.1.1"
ports = [ 8001, 8001, 8002 ]
connection_max = 5000
enabled = true

[servers]

  # Indentation (tabs and/or spaces) is allowed but not required
  [servers.alpha]
  ip = "10.0.0.1"
  dc = "eqdc10"

  [servers.beta]
  ip = "10.0.0.2"
  dc = "eqdc10"

[clients]
data = [ ["gamma", "delta"], [1, 2] ]
# Line breaks are OK when inside arrays
hosts = [
  "alpha",
  "omega"
]

منابع

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.