Documentation ¶
Index ¶
Constants ¶
View Source
const ( PluginTypeUnknown = iota PluginTypeFile PluginTypeURL PluginTypeString )
View Source
const (
KEYWORD_IMPORT = "#import "
)
View Source
const Version = "0.3.0"
Version of the script engine.
Variables ¶
This section is empty.
Functions ¶
func CreateVMScript ¶
CreateVMScript creates the javascript script we run at the otto vm. data must be formatted as json.
func IsValueInList ¶ added in v0.2.3
func LoadPlugin ¶ added in v0.2.3
LoadPlugin and return the source as a byte array
func PluginIsType ¶ added in v0.2.3
func RequestPlugin ¶ added in v0.2.3
Types ¶
type Plugin ¶
type Plugin struct { ImportURLs []string ImportCodeStack []string Js []string // here we store the main plugin code }
func (*Plugin) ParseSource ¶ added in v0.2.3
type WriteScript ¶
type WriteScript struct {
Content textbackend.TextContent // create output storage the plugin can write content to
}
WriteScript Core
Click to show internal directories.
Click to hide internal directories.