Documents #
Document blocks are the most important element of the Fabric configuration. document
block represents a template and includes the data and content blocks that define the document.
document "<document-name>" {
title = "<document title>"
...
}
A block type document
and a document name are an unique identifier for the document template within the codebase. The document blocks must defined be on a root level of the configuration file and can not be inside other blocks.
The document
block is a structure that groups the data definitions, the sections, and the content blocks together, and describes the document to be rendered.
Supported arguments #
title
: (optional) a title of the document. It’s a syntax sugar for a nestedcontent
block that renders a title. The title content block precedes any other nestedcontent
blocks orsequence
blocks defined at the same level.
Supported nested blocks #
meta
: (optional) a block containing metadata for the block.data
: see Data Blocks for the details.content
: see Content Blocks for the details.section
: see Section Blocks for the details.
Next steps #
See Data Blocks documentation to learn how to define data requirements in the templates.