Liquid templating engine in configuration - Samuel-Martineau/MC-Config-Controller GitHub Wiki
The configuration files of servers and templates use the Liquid template engine to add the dynamic values in. There are 3 types of properties you can access:
Name | How to access properties | Description |
---|---|---|
Server properties | server.propertyName |
Server only properties |
Servers properties | servers[index].propertyName |
Object of all the servers in an array |
Global properties | global.propertyName |
Properties accessible to all servers and templates |
Here are the properties available:
{
global: {
<customGlobalVariable>: <value>
},
servers: [{
id: <serverID>,
name: <serverName>,
type: <serverType>,
version: <serverVersion>,
extends: [],
keepFiles: [],
variables: {
<customServerVariable>: <value>
}
}],
server: {
id: <serverID>,
name: <serverName>,
type: <serverType>,
version: <serverVersion>,
extends: [],
keepFiles: [],
variables: {
<customServerVariable>: <value>
}
}
}
For more information on how to setup custom variables, see Options | variables
Examples of the usage of the Liquid template engine can be found in the Example Server