Implementation of title page HTML generator
Context
For the case of POD client we want to auto generate a component during the creation of a book which will act as a placeholder of the Title page of that book.
Proposal
Design
Implementation (if applicable)
- In here based on the
featurePODEnabled
flag a new component should be created automatically in a similar way as the existing automatic creation of TOC component here from lines 379-451. This new component should be included in thefrontmatter
division, itscomponentType
should betitle-page
and itsincludeInToc
should be set to false. - A new function should be implemented here called
generateTitlePage
, the arguments of that function should be an object ofbookComponent
as well as the book's title, book's subtitle (if any) and book's authors (extracted from stored metadata, if any).Then, based on this it should create theHTML
for the Title page. - Finally, the above method,
generateTitlePage
, should be called in the exported function here in a smiliar way like this