Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First the delimiters to use around StringTemplate variables are set to "$" instead of the default "<" ">" delimiters to be able to use variables within HTML. StringTemplate uses a function call to generate the template: main(context). The context object that is passed with this function call contains all properties as described above. In the funciton body (between "<<" and ">>") the actual index page is placed, which is a full HTML page.

Info

In this example "main" is used as template function name, but this can be customized. See the Configuration section below for more information.

Save the custom index file as a .stg file so it is recognized by StringTemplate.

Installation

Installing your custom theme is easily done by putting all files in the 

Include Page
_HomeFolder
_HomeFolder
 folder. For example when a theme is created named "custom_dashboard" which consists of an index file, a JavaScript file and a CSS stylesheet, installation would be as follows:

Configuration

In order to configure your theme so it will be known by the Runtime several properties must be set. The following example shows properties for registering a theme named "custom_dashboard":

...