Properties
Path:
/src/type/properties.coffee
compiled to/lib/type/properties.js
Mainly in the Java world properties are used to setup configuration values. But it won’t have support for arrays, you only may use objects with numbered keys.
Common file extension properties
.
# strings
string = test
other text
multiline This text \
goes over multiple lines.
# numbers
integer = 15
float: -4.6
! add a simple list
list.1 = one
list.2 = two
list.3 = three
! add a sub object
person.name: Alexander Schilling
person.job: Developer
#references
ref = ${string}
# add a section
[section]
name = Alex
same = ${section|name}
This format supports:
- key and value may be divided by
=
,:
with spaces or only a space - comments start with
!
or#
- structure data using sections with square brackets like in ini files
- structure data using namespaces in the key using dot as seperator
- references to other values with
${key}
- references work also as section names or reference name