Using the AddOn namespace

The addon namespace is a private table shared between Lua files in the same addon. It allows for addons to access data between files without exposing/polluting variables to the global environment. addonName, addonTable = ...

Vararg

 * addonName : string - The name of your addon as set in the TOC and folder name.
 * addonTable : table - The shared addon table between the Lua files of an addon.

Example
This addon defines the "foo" key on the addon table in  and accesses it in   FileA.lua FileB.lua
 * 1) Interface:
 * 2) Version: 1.0
 * 3) Title: Test
 * 1) Title: Test

local _, addonTbl = ... addonTbl.foo = "Hello"

local addonName, addonTbl = ... print(addonName, addonTbl.foo) -- prints "Test" and "Hello"