/*\ title: $:/core/modules/library.js type: application/javascript module-type: global Library handling utilities \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; function Library(options) { } /* */ Library.prototype.getLibraryItems = function() { if(!this.items) { this.loadLibraryItems(); } }; /* */ Library.prototype.loadLibraryItems = function() { var self = this, fs = require("fs"), path = require("path"); // Collect the library items from disk this.items = {}; var collectPlugins = function(folder) { var pluginFolders = $tw.utils.getSubdirectories(folder) || []; for(var p=0; p