3 ms·
Interestingly enough, TOML is somewhat similar to valid CoffeeScript hash/array syntax, apart from the auto-vivifying hashes bit (and native dates, natch). Here
by jashkenas 14y ago
Interestingly enough, TOML is somewhat similar to valid CoffeeScript hash/array syntax, apart from the auto-vivifying hashes bit (and native dates, natch). Here's the top of that highlighted document:
# This is not a TOML document. Boom.
title: "TOML Example"
owner:
name: "Tom Preston-Werner"
organization: "GitHub"
bio: "GitHub Cofounder & CEO\nLikes tater tots and beer."
dob: "1979-05-27T07:32:00Z" # First class dates? 'Fraid not.
database:
server: "192.168.1.1"
ports: [ 8001, 8001, 8002 ]
connection_max: 5000
enabled: true
servers:
# Indentation matters. Tabs or spaces. CS don't care.
alpha:
ip: "10.0.0.1"
dc: "eqdc10"
beta:
ip: "10.0.0.2"
dc: "eqdc10"
Proof: http://goo.gl/3xV4P http://goo.gl/3xV4P
- jrmg 14y agoThat looks like valid YAML to me.