var CustomPlugin = new Object(); CustomPlugin["include"] = function(){ //All functions of plugins are executed into the scope of the JXN parse giving it access to the built-in apis. var args = this.collectArgs(); //This is way to retrieve the values that are passed by the json string. var str = SomeSynchronizedFileLoader.load(args[0]); var jxn = new JXN(); jxn.setContext(this.properties.context); return jxn.unmarshall(str); } JXN.installPlugin("custom",CustomPlugin);
[custom.include("targetfile.jxn")]
Copyright (C) 2007 JXN
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
Michael JacksonĀ© is not affiliated with this project.
Gallium31.com