Zaid
Provides access to the Zaidlang runtime.
Methods
zaid.abort()
zaid.abort()
Creates a new runtime error and outputs the specified message. If the passed value is null
no runtime error is generated.
zaid.execute()
zaid.execute()
Executes Zaidlang code represented as a string. The string representation can include variables and properties of existing objects.
zaid.extend()
zaid.extend()
Registers and executes a plugcompiled through Go, allowing the ability to dynamically extend Ghost with new native functionality. Plugins must be compiled against both the exact version of Ghost, and the version of Go used to compile Ghost.
Ghost Version
Go Version
1.0
1.17.5
To compile a plugin with Go, use the -buildmode=plugin
build flag:
zaid.identifiers()
zaid.identifiers()
Returns a list of all identifieris within the current scope.
Properties
zaid.version
zaid.version
Returns the current version of Ghost.
Last updated