Use of TREB is subject to license (CC-BY-ND).
The zip file contains a number of script files. You only need to link to the main library,
The other files are loaded on demand on certain user actions, to provide additional functions for import/export and running MC simulations. You can disable these functions, in which case you don’t necessarily need the associated scripts.
Put all script files in the same directory.
TREB files are JSON files. By convention we use the extension
.treb. If you use the
.treb extension, make sure your webserver is configured to send the appropriate MIME type header
In the alternative, you can just use a
.json extension for your documents.