Closed jelovirt closed 3 years ago
In order to add support for both "components", variable references, and inline text, should we change
"header": {
"odd": ["title"],
to something like
"header": {
"odd": "{title} | {#keyfromvariable}"
Parsed data from the header in this case would be
[
{ kind: 'field, value: 'title' },
{ kind: 'text', value: ' | ' },
{ kind: 'variable', value: 'keyfromvariable' },
]
These are directly related to pages margins and header/footer usage
"mirror_page_margins": true,
These are page flow related
"blank_pages": true,
"force_page_count": "even",
These are about page content layout related
"body_column_count": 1,
"index_column_count": 2,
"column_gap": "12pt",
Design JSON format for template/theme files. The same format can be used in YAML.
The current format is used internally by the UI code and has not been designed with hand authoring in mind.
Example with parts missing
Refactored format with changes inline, ie. edit this code block and add comments: