diff --git a/CHANGELOG.md b/CHANGELOG.md index b0953bd..ba9af30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 0.16.0 + +- Support `{> fn` and `{> pub fn` syntax for declaring private and public functions within the + template file. This allows better locality of helper functions and easy access to template + behaviour. + + Template files which only have function declarations and no meaningful template content will not + have the `render` and `render_builder` methods so they can be used library modules with just + helper functions. + ## 0.15.0 - **Breaking change**: No longer includes `gleam/list` import for templates that don't use the `for` diff --git a/Cargo.lock b/Cargo.lock index eb1efa6..dd5e30b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -196,7 +196,7 @@ dependencies = [ [[package]] name = "matcha" -version = "0.15.0" +version = "0.16.0" dependencies = [ "atty", "codespan-reporting", diff --git a/Cargo.toml b/Cargo.toml index 93373b6..6bc2779 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "matcha" -version = "0.15.0" +version = "0.16.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html