summaryrefslogtreecommitdiffstats
path: root/lib/generate/config.js
diff options
context:
space:
mode:
authorAlexandre Aquiles <alexandre.aquiles@gmail.com>2014-10-06 13:17:34 -0300
committerAlexandre Aquiles <alexandre.aquiles@gmail.com>2014-10-06 13:17:34 -0300
commita56b559d43ddb1f0271f211dbc72eb86bfa164b3 (patch)
treea079f383e84f57eb6ed9f7335c3dfde147f29d91 /lib/generate/config.js
parentdf1a82e0e4c45c314b941488a2c7e22e6fe5b55a (diff)
downloadgitbook-a56b559d43ddb1f0271f211dbc72eb86bfa164b3.zip
gitbook-a56b559d43ddb1f0271f211dbc72eb86bfa164b3.tar.gz
gitbook-a56b559d43ddb1f0271f211dbc72eb86bfa164b3.tar.bz2
Adding options to set header and footer in PDF generation
Diffstat (limited to 'lib/generate/config.js')
-rw-r--r--lib/generate/config.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/generate/config.js b/lib/generate/config.js
index 0b270a3..76b0d79 100644
--- a/lib/generate/config.js
+++ b/lib/generate/config.js
@@ -83,7 +83,13 @@ var CONFIG = {
"left": 62,
"top": 36,
"bottom": 36
- }
+ },
+
+ //Header HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
+ "headerTemplate": null,
+
+ //Footer HTML template. Available variables: _PAGENUM_, _TITLE_, _AUTHOR_ and _SECTION_.
+ "footerTemplate": null
}
};