TOML
| پسوند(های) نام پرونده | .toml |
|---|---|
| نوع رسانهٔ اینترنتی | not registered |
| توسعهدهنده | تامس پرستن-ورنر |
| ارائهٔ اولیه | ۲۳ فوریه ۲۰۱۳ |
| آخرین نسخه | v0.5.0 (۱۰ ژوئیه ۲۰۱۸) |
| گونه | 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"
]
منابع
- مشارکتکنندگان ویکیپدیا. «TOML». در دانشنامهٔ ویکیپدیای انگلیسی، بازبینیشده در ۲۷ فوریه ۲۰۱۹.
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.
- 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:
- 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.
- 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.
- 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.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.