Repository navigation
1.11.0 (2026-12-01)
⚠️ Upgrade notes
ValidateTemplate reports more problems
Processing output of existing templates does not change (apart from the bug fixes below). ValidateTemplate is stricter, so a template that passed before can now fail:
- Block marker with other text (#253): a
{{#if}},{{#foreach}},{{/if}}… marker that shares its paragraph (or table row) with other text is now aValidationErrorType.BlockMarkerWithTexterror. Processing drops that text, as before, and now reports it as aProcessingWarningType.BlockMarkerWithTextwarning. Move the marker into its own paragraph. - Template lint (#255): unterminated tags (
ValidationErrorType.UnterminatedTag), several block markers in one paragraph (ValidationErrorType.MultipleBlockMarkers) and orphan{{/if}},{{#else}},{{#elseif}},{{/foreach}}are errors. Structural errors now carry a location (body, table 1, row 2, cell 3, paragraph 1: '…') inLocation, and the same error at two places is reported at each. - Loop item paths with data (#299):
ValidateTemplate(stream, data)resolves the whole path of a loop item ({{item.Customer.Name}}), not only its first segment. A nested path that no item has is now aMissingVariableerror (values) or aMissingConditionVariablewarning (conditions).
New enum members
ValidationErrorType.BlockMarkerWithText, UnterminatedTag, MultipleBlockMarkers and ProcessingWarningType.BlockMarkerWithText. A switch over these enums without a default branch needs the new cases.
Features
- :join format specifier for collections (#272) (#273) (0ac402c)
- template lint — locations, unterminated tags, multiple and orphan markers (#255) (#276) (a9d74ce)