Documents #
Document blocks are the most important element of the Fabric configuration. document
block represents a template and includes the data, content and publishing definitions that describe the document and the workflow around it.
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, the content blocks, and the publishing instructions together.
Supported arguments #
title
: (optional) a title of the document. It’s a syntax sugar for a nestedcontent
block that renders a title. During rendering, the title precedes any other nestedcontent
blocks orsection
blocks defined at the root level of the template.
Supported nested blocks #
meta
: see Metadatadata
: see Data Blocksvars
: see Variablescontent
: see Content Blockssection
: see Section Blockspublish
: see Publish Blocks
Next steps #
See Evaluation Context documentation to learn how about the context that holds all data available for the template.