Skip to main content
Skip table of contents

Theme

Methods

Name

Type

Description

$theme.baseUrl

String

The relative base URL for resources in the current theme.

$theme.containsResource(resourcePath)

boolean

True if the specified resource is found in the theme.

  • Parameter: resourcePath

  • Type: String

  • Description: the full path to a resource within the theme

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

  • Parameter: relativeFileName

  • Type: String

$theme.readPropertiesResource(relativeFileName)

Map<String,String>

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

  • Parameter: relativeFileName

  • Type: String

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

  • Parameter: rrelativeFileName

  • Type: String

  • Parameter: fallbackFileName

  • Type: String

$theme.version

String

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.