diff options
author | Johan Preynat <johan.preynat@gmail.com> | 2016-05-04 10:26:06 +0200 |
---|---|---|
committer | Johan Preynat <johan.preynat@gmail.com> | 2016-05-04 10:26:06 +0200 |
commit | 4e564707dff1d82c40bd581fc24ebadbae8adfe6 (patch) | |
tree | 7882c299b50df23a3dd7a1082b6a6e2d4df1a66b /lib | |
parent | da8611e0c313225ffe03dcb7e99164c8564c5599 (diff) | |
download | gitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.zip gitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.tar.gz gitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.tar.bz2 |
Add resources to website generator state
Diffstat (limited to 'lib')
-rw-r--r-- | lib/output/website/state.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/output/website/state.js b/lib/output/website/state.js index 99e7f04..cb8f750 100644 --- a/lib/output/website/state.js +++ b/lib/output/website/state.js @@ -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; |