summaryrefslogtreecommitdiffstats
path: root/lib/output/website/state.js
diff options
context:
space:
mode:
authorJohan Preynat <johan.preynat@gmail.com>2016-05-04 10:26:06 +0200
committerJohan Preynat <johan.preynat@gmail.com>2016-05-04 10:26:06 +0200
commit4e564707dff1d82c40bd581fc24ebadbae8adfe6 (patch)
tree7882c299b50df23a3dd7a1082b6a6e2d4df1a66b /lib/output/website/state.js
parentda8611e0c313225ffe03dcb7e99164c8564c5599 (diff)
downloadgitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.zip
gitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.tar.gz
gitbook-4e564707dff1d82c40bd581fc24ebadbae8adfe6.tar.bz2
Add resources to website generator state
Diffstat (limited to 'lib/output/website/state.js')
-rw-r--r--lib/output/website/state.js9
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;