Theme
Methods
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
$theme.baseUrl | String | The relative base URL for resources in the current theme. | |||||||||
$theme.containsResource(resourcePath) | boolean |
| |||||||||
$theme.id | String | The ID of the theme. | |||||||||
$theme.name | String | Prints the name of the theme. | |||||||||
$theme.readJsonResource(relativeFileName) | Map<String,Object> | Reads a .json file and returns the JSON object as a Map.
| |||||||||
$theme.readPropertiesResource(relativeFileName) | Map<String,String> | Reads a properties file and returns the parsed properties as a Map.
| |||||||||
$theme.readPropertiesResource(relativeFileName, fallbackFileName) | Map<String,String> | Reads two properties files, merges them and returns the parsed properties as a Map. If a key exists in both files, the value of the fallback file is ignored.
| |||||||||
$theme.version | String | Prints the version of the theme. |