Problem inserting "book variables" into rendered page #340
Unanswered
hmaier-fws
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Can you paste your
{
"variables": {
"title": "xxx"
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can the book variables be inserted into a rendered page? The variables documentation states that is a "...reference of the available data during book's parsing...". I am attempting to insert several Book Variables, but they are not being displayed in the rendered page.
For example, my book.json contains a
title
key with an associated value that is being read and rendered for use by the html title tag. When I attempt to addbook.title
within the body of a page it does not render to the final html. I have tried all of the following in my source .md but none render:Note: I tried
this.title
because when serving the page locally I receive a warning: "book" property is deprecated, use "this" directly insteadI am using honkit v. 4.0.7, running under NodeJS v. 18.15.0 on Windows 10.
Any suggestions would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions