summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/templating/variables.md14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/templating/variables.md b/docs/templating/variables.md
index 1a215de..0d316df 100644
--- a/docs/templating/variables.md
+++ b/docs/templating/variables.md
@@ -21,8 +21,20 @@ The following is a reference of the available data during book's parsing and the
| Variable | Description |
| -------- | ----------- |
-| `book.[CONFIGURATION_DATA]` | All the `variables` set via the `book.json` are available through the book variable. |
| `book.language` | Current language for a multilingual book |
+| `book.[value]` | All other values under `variables` in the `book.json` are accessible here |
+
+For example, with this `book.json`:
+
+```json
+{
+ variables: {
+ hello: "everyone"
+ }
+}
+```
+
+... the following text `{{ book.hello }}` will expand to `everyone`.
### GitBook Variables