MvINCLUDE#
Compiler directive. At compile time, will include the named file which can include other files. This allows you to separate your code into functional groups or libraries files.
Syntax
<MvINCLUDE FILE = "string: literal" INTERPRET="ON|OFF">
Attributes#
Attribute | Description |
---|---|
FILE |
The path and name of a separate un-compiled Miva Script program file that will be included (merged) into your program when encountered. The included file may contain additional <MvINCLUDE> tags. |
INTERPRET |
(Optional) The literal value "OFF" will include the text of the included file as a literal without interpreting or compiling HTML or Miva Script tags. The value "ON" is the default and will parse and compile the included file. |
Example#
The Miva Script compiler will merge these three un-compiled files into the program at compile time.
<MvINCLUDE FILE = "tools/database.mv">
<MvINCLUDE FILE = "../library/license.mv">
<MvINCLUDE FILE = "../library/utility.mv">
<MvINCLUDE FILE = "json.js" INTERPRET="OFF">
<MvINCLUDE FILE = "example.mv" INTERPRET="OFF">