blob: b659aecd258262e75c256de6d631941472b5ea02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/2.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0] - 2026-06-29
### Added
- Simplified `tmpl!` macro syntax: supports `tmpl!(tmpl, block_name { key = val, ... })` form, removing the `+=` operator and parentheses around each parameter group
- Old syntax `tmpl!(tmpl += { ... })` remains backward compatible
### Changed
- Documentation and test code unified to use the simplified `tmpl!` syntax
## [0.1.3] - 2026-03-02
### Fixed
- Fixed the reading logic for implementation block regions in `expand.rs`
## [0.1.2] - 2026-03-02
### Added
- Added `From<&str>` and `From<Cow<'_, str>>` trait implementations for `Template`
## [0.1.1] - 2026-02-28
### Changed
- Refactored crate structure, moved macro definitions to `lib.rs`
- Renamed `src/lib.rs` to `src/template.rs`
## [0.1.0] - 2026-02-27
### Added
- `Template` struct, supporting template strings and two parameter types (simple parameters and implementation block parameters)
- Template syntax: `<<<key>>>` for simple parameter substitution, `>>>>>>>>>> block_name` / `@@@ >>> block_name ... @@@ <<<` for implementation block regions
- `tmpl!` macro: adds implementation block parameters to a template
- `tmpl_param!` macro: adds simple parameters to a template
- `Template::expand()` method: expands the template and returns the final string
- Project initialization
[unreleased]: https://github.com/catilgrass/just_template/compare/v0.2.0...HEAD
[0.2.0]: https://github.com/catilgrass/just_template/compare/v0.1.3...v0.2.0
[0.1.3]: https://github.com/catilgrass/just_template/compare/v0.1.2...v0.1.3
[0.1.2]: https://github.com/catilgrass/just_template/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/catilgrass/just_template/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/catilgrass/just_template/releases/tag/v0.1.0
|