Use Properties and Jinja Templates in v7
mainv7 uses MiniJinja for templating. Unlike v6, which converted all properties to strings, v7 preserves original types (integers, booleans, arrays, tables) under the [props] table.
Important Migration Notes:
- Case Sensitivity: Built-in templates (Apache/Elastic) use
snake_case. You must convert{{props.camelCase}}to{{ props.snake_case }}. - Strictness: v7 uses strict undefined values. If a property is missing from
[props], the template will fail to render rather than producing an empty string. - Available Attributes: You can access file metadata via the
attrsobject:attrs.filenameattrs.disk_file_created_yearattrs.disk_file_modified_yearattrs.git_file_created_yearattrs.git_file_modified_yearattrs.git_authors
{# v6 style (string conversion) #}
{{props["inceptionYear"]}} {{props["copyrightOwner"]}}
{# v7 style (type preserved, snake_case) #}
{{ props.inception_year }} {{ props.copyright_owner }}