summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-02-17 15:07:56 +0100
committerSamy Pessé <samypesse@gmail.com>2016-02-17 15:07:56 +0100
commit067bdcda2db081a6df55913b8502a94f1f8251ac (patch)
tree0a80f42960997a72933c670b6b58e15932ab4ae5 /docs
parent3bc1934966bef98c69e6dc6d237364473202461f (diff)
downloadgitbook-067bdcda2db081a6df55913b8502a94f1f8251ac.zip
gitbook-067bdcda2db081a6df55913b8502a94f1f8251ac.tar.gz
gitbook-067bdcda2db081a6df55913b8502a94f1f8251ac.tar.bz2
Add "config" to templating context
Diffstat (limited to 'docs')
-rw-r--r--docs/variables.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/variables.md b/docs/variables.md
index bf2e88d..fb85463 100644
--- a/docs/variables.md
+++ b/docs/variables.md
@@ -11,13 +11,12 @@ The following is a reference of the available data during book's parsing and the
| `page` | Current page specific information |
| `file` | File associated with the current page specific information |
| `summary` | Information about the table of contents |
+| `config` | Dump of the `book.json` |
### Book Variables
| Variable | Description |
| -------- | ----------- |
-| `book.title` | Title specified in the `book.json` (or detected from the README) |
-| `book.description` | Description specified in the `book.json` (or detected from the README) |
| `book.[CONFIGURATION_DATA]` | All the `variables` set via the `book.json` are available through the book variable. |
### GitBook Variables
@@ -33,6 +32,7 @@ The following is a reference of the available data during book's parsing and the
| -------- | ----------- |
| `file.path` | The path to the raw page |
| `file.mtime` | Modified Time, Time when file data last modified |
+| `file.type` | The name of the parser used to compile this file (ex: `markdown`, `asciidoc`, etc) |
#### Page Variables