The Server object

Path: server

The server is a unique object that represents the GWC rendering engine instance.

Fields Type Description
version Attribute (string) Returns the version of the server.
development Attribute (boolean) Indicate if the server is in development mode (not in production). In development mode, debug information displays (gtree, log link, and so on).
production Attribute (boolean) Indicate if the server is in production mode (not in development).

Example

<title gwc:content="(application/ui ? application/ui/text : '') +
 ' - ' + server/version">Application name</title>

This displays the GWC engine version in the browser title bar.

<title gwc:content="server/development? 'development application' :
 'production application'">Application name</title> 

This displays "development application" if the server is started with "--development" option otherwise it displays "production application".