Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.10.0"
".": "1.11.0"
}
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,34 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.0](https://github.com/TriasDev/templify/compare/v1.10.0...v1.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](https://github.com/TriasDev/templify/issues/253)): a `{{#if}}`, `{{#foreach}}`, `{{/if}}` … marker that shares its paragraph (or table row) with other text is now a `ValidationErrorType.BlockMarkerWithText` error. Processing drops that text, as before, and now reports it as a `ProcessingWarningType.BlockMarkerWithText` warning. Move the marker into its own paragraph.
- **Template lint** ([#255](https://github.com/TriasDev/templify/issues/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: '…'`) in `Location`, and the same error at two places is reported at each.
- **Loop item paths with data** ([#299](https://github.com/TriasDev/templify/issues/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 a `MissingVariable` error (values) or a `MissingConditionVariable` warning (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](https://github.com/TriasDev/templify/issues/272)) ([#273](https://github.com/TriasDev/templify/issues/273)) ([0ac402c](https://github.com/TriasDev/templify/commit/0ac402caad2677f12d9b600eb9a722be129dc529))
* template lint — locations, unterminated tags, multiple and orphan markers ([#255](https://github.com/TriasDev/templify/issues/255)) ([#276](https://github.com/TriasDev/templify/issues/276)) ([a9d74ce](https://github.com/TriasDev/templify/commit/a9d74ced201a600c95ca63336ab2abc9ceb09ab6))


### Bug Fixes

* insert w:updateFields at its schema position in settings ([#254](https://github.com/TriasDev/templify/issues/254)) ([#256](https://github.com/TriasDev/templify/issues/256)) ([8d9c359](https://github.com/TriasDev/templify/commit/8d9c359901bd7191e8cfbab12d184743fda9160d))
* report text removed together with block markers ([#253](https://github.com/TriasDev/templify/issues/253)) ([#259](https://github.com/TriasDev/templify/issues/259)) ([da01316](https://github.com/TriasDev/templify/commit/da013160f497de2d0cf89675ef2195196136e0d2))
* validate the whole path of a loop item, not only its first segment ([#299](https://github.com/TriasDev/templify/issues/299)) ([#301](https://github.com/TriasDev/templify/issues/301)) ([ca1a1cf](https://github.com/TriasDev/templify/commit/ca1a1cfd1925b4d7daf328bb7c6009b27ce6c622))

## [1.10.0](https://github.com/TriasDev/templify/compare/v1.9.0...v1.10.0) (2026-11-12)

### ⚠️ Upgrade notes
Expand Down
2 changes: 1 addition & 1 deletion src/TriasDev.Templify/TriasDev.Templify.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- NuGet package identity; shared package metadata is in src/Directory.Build.props -->
<PackageId>TriasDev.Templify</PackageId>
<Version>1.10.0</Version>
<Version>1.11.0</Version>
<Description>High-performance templating engine for .NET. Process Word documents (.docx), LibreOffice / OpenDocument Text documents (.odt, .ott) and plain text templates with the same powerful syntax. Replace placeholders, evaluate conditionals, and process loops without Microsoft Word or LibreOffice. Built on the OpenXML SDK; OpenDocument support needs no extra dependency.</Description>
<PackageTags>word;docx;odt;ott;opendocument;libreoffice;template;openxml;document-generation;templating;word-documents;office;dotnet;email;text-templates</PackageTags>

Expand Down
Loading