mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
c7713c1d27
- Based on suggestions from hswolff loading with a Module class approach - Loads relative modules in child sandboxes
24 lines
No EOL
462 B
JavaScript
24 lines
No EOL
462 B
JavaScript
|
|
var path = require('path'),
|
|
util = require('./goodlib.js'),
|
|
nested = require('./nested/goodnested');
|
|
|
|
function GoodApp(app) {
|
|
this.app = app;
|
|
}
|
|
|
|
GoodApp.prototype.install = function () {
|
|
// Goes through app to do data
|
|
this.app.something = 42;
|
|
this.app.util = util;
|
|
this.app.nested = nested;
|
|
this.app.path = path.join(__dirname, 'good.js');
|
|
|
|
return true;
|
|
};
|
|
|
|
GoodApp.prototype.activate = function () {
|
|
|
|
};
|
|
|
|
module.exports = GoodApp; |