YAML (markup)
What is YAML
- YAML is a data format for mostly config files.
- YAML syntax is indentation based.
- YAML file name extension is
.yml
Example
Sample YAML file, used by Google App Engine.
application: helloworld version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: helloworld.app
another example, for setting up mongodb.
development: sessions: default: database: xyz_dev hosts: - localhost:27017 production: sessions: default: database: xyz_prod hosts: - localhost:27017 username: <%= ENV['MONGOID_USERNAME'] %> password: <%= ENV['MONGOID_PASSWORD'] %>