Using scope variables

It is possible to read scope object parameters and use a custom object parameter throughout FontoXML. This can then be used in whatever way you see fit.

Do not use scope parameters as a security measure as the scope could freely be edited by users.

The scope parameter is acquired as follows:

JavaScript

define([
	'fontoxml-configuration/get!scope'
], function (
	scope
) {
	'use strict';


	...
);

The scope can then be used as any other Javascript Object.