mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Add resources to website generator state
This commit is contained in:
@@ -2,11 +2,18 @@ var I18n = require('i18n-t');
|
||||
var Immutable = require('immutable');
|
||||
|
||||
var GeneratorState = Immutable.Record({
|
||||
i18n: I18n()
|
||||
i18n: I18n(),
|
||||
|
||||
// List of plugins' resources
|
||||
resources: Immutable.Map()
|
||||
});
|
||||
|
||||
GeneratorState.prototype.getI18n = function() {
|
||||
return this.get('i18n');
|
||||
};
|
||||
|
||||
GeneratorState.prototype.getResources = function() {
|
||||
return this.get('resources');
|
||||
};
|
||||
|
||||
module.exports = GeneratorState;
|
||||
|
||||
Reference in New Issue
Block a user