yaml_property

Serialize a complete YAML property.

View Markdown

Syntax

{{ value | yaml_property:"name" }}

Usage

  • One non-empty property name is required. Quote names that contain spaces or punctuation.
  • Scalars appear beside the key. Non-empty arrays and objects use block style beneath the key with two-space indentation; empty collections stay inline as [] or {}.
  • Uses the same value serialization as yaml and quotes keys when needed. Typed and serialized JSON collections are supported.
  • Apply transformations such as wikilink before this filter. No separate yaml or indent filter is needed.
  • Output has no trailing newline or frontmatter delimiters.

Examples