Overview

Contains general information about the website and provides access to some website objects.

The current website is available as the website variable in all rendering contexts.

Properties

website.title

Returns the title of the website.

website.hostname

Returns the website's public host name.

website.currency_code

Returns the currency code of the website's main currency.

Example: USD, EUR, ...

website.currency_sign

Returns the sign of website's main currency.

Example: $, , ...

website.currency_formatting_settings

Returns the CurrencyFormattingSettings object.

Rendering this object directly returns a JSON representation of the settings.

Example: const settings = {{ website.currency_formatting_settings }};

website.locale

Returns the two-letter code of website’s default language.