Module: MoonScript
MoonScript (source, chunkname) | Compiles and loads the given MoonScript source. |
Module: MoonScript
Adds support for compiling and loading MoonScript files!
- MoonScript (source, chunkname)
-
Compiles and loads the given MoonScript source.
Parameters:
- source Source code string or Codea AssetKey pointing to a .moon file.
- chunkname (optional) Debug chunkname to give the loaded string. Not required when loading from an AssetKey.
Usage:
-- This is how this documentation is generated! MoonScript([==[ export setup = -> -- Call straight through to AutoDoc to display -- the MoonScript module documentation. AutoDoc true ]==], "Main")
-- Load from an asset file MoonScript(asset.Main_moon)