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 nested content block that renders a title. The title content block precedes any other nested content blocks or sequence blocks defined at the same level.

Supported nested blocks

Next steps

See Data Blocks documentation to learn how to define data requirements in the templates.