=====J.ini===== J.ini is my template for packaging composite Javascript packages. It tries to provide a simple, orderly framework for developing classes and combining them with other classes. The latest version of J.ini can be found in [[http://klenwell.googlecode.com/svn/trunk/JS/jini/ my Google Code repository]]. A basic J.ini package includes a [[http://klenwell.googlecode.com/svn/trunk/JS/jini/class.ini.js class.ini.js]] file and a [[http://klenwell.googlecode.com/svn/trunk/JS/jini/class.core.js class.core.js]] file. The ini file dynamically loads the core file along with any other dependent files and declares a minimalistic constructor class. This constructor class then gets fleshed out and extended in the [[http://klenwell.googlecode.com/svn/trunk/JS/jini/class.core.js class.core.js]] file. **license** : [[http://www.opensource.org/licenses/gpl-license.php GPL2]] **source** : [[http://klenwell.googlecode.com/svn/trunk/JS/jini/ google code]] **demo** : [[http://klenwell.googlepages.com/demo.jini.htm klenwell.googlepages.com]] ====Code==== ** J.ini object constructor ** %%(javascript) // base class constructor // ** EDIT Class Name /*____________________________________________________________________________*/ function DemoClass(_debug) { // set meta properties this.debug = _debug; this.name = META['name']; this.version = META['version']; this.filename = META['filename']; this.dirpath = META['dirpath']; this.INCLUDE = META['INCLUDE']; /* extend this class with an ini method and call that to pass any needed parameters */ }; // end cx /*____________________________________________________________________________*/ %% Visit the [[http://klenwell.googlecode.com/svn/trunk/JS/jini/ klenwell google code repository]] for the full source. ====Reference==== [[http://klenwell.googlepages.com/demo.jini.htm J.ini demo]] [[http://klenwell.googlecode.com/svn/trunk/JS/jini/ J.ini source]] (klenwell google code repository) ---- CategoryJavascript