From a96ef569bdc9d48ff344c19e9df39e2c4560ff68 Mon Sep 17 00:00:00 2001 From: Nicolas Gaborit Date: Wed, 11 Jan 2017 17:41:47 +0100 Subject: [PATCH] Clarify the use of {{ book.var }} (#1652) Fixes #1425 --- docs/templating/variables.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/templating/variables.md b/docs/templating/variables.md index 1a215de47..0d316df17 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