Skip to main content
Skip table of contents

Theme

Methods

NameTypeDescription
$theme.baseUrlString

The relative base URL for resources in the current theme.

$theme.containsResource(resourcePath)boolean

True if the specified resource is found in the theme.

ParameterTypeDescription
resourcePathStringthe full path to a resource within the theme
$theme.idString

The ID of the theme.

$theme.nameString

Prints the name of the theme.

$theme.readJsonResource(relativeFileName)Map<String,Object>

Reads a .json file and returns the JSON object as a Map.

ParameterTypeDescription
relativeFileNameString
$theme.readPropertiesResource(relativeFileName)Map<String,String>

Reads a properties file and returns the parsed properties as a Map.

ParameterTypeDescription
relativeFileNameString
$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.

ParameterTypeDescription
relativeFileNameString
fallbackFileNameString
$theme.versionString

Prints the version of the theme.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.