Mascara: Next Generation JavaScript compiler

Try it Download Buy About Documentation Blog Contact

Include

The Include directive includes the content of a file in the compilation. Basically this is similar to the #INCLUDE directive in C. Example:
include "unittest.esx";
The files are searched for either in the standard library, or in the same folder as the main input file. If the file is in a subfolder, forward slashes is used to indicate the path: Example:
include "whizzers/zap.esx";
This locates the file zap in the folder whizzers which should be in the same folder as the main input file.

See also import.

X Try!
Mascara JavaScript Generated JavaScript

Translating...
Show compiler settings