This repository was archived by the owner on Oct 3, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 0
Structure
Programie edited this page Dec 16, 2014
·
5 revisions
{
"path.to.my.value" :
{
"defaultValue" : "Some default value"
},
"path.to.my.defaultValue" :
{
"defaultValue" : "Set by template"
},
"path.to.my.otherValue" :
{
},
"path.to.another.path" :
{
"defaultValue" : "This is the default value"
}
}
The user config is the file which contains the values set by the setValue() method.
The getValue() method will first try to get the value from the user config and fallback to the default value defined in the template.
{
"path" :
{
"to" :
{
"my" :
{
"value" : null
"defaultValue" : null,
"otherValue : "This must be set"
},
"another" :
{
"path" : "The default value has been replaced"
}
}
}
}