From b972bb5e72c36ef373adc537813cebe76659eb26 Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 1 May 2023 23:40:43 +0200 Subject: [PATCH] updated changelog --- CHANGELOG.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d51a83c0..cca6d7ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added support for PHP8.2 -- Added a new way to extend Smarty functionality using `Smarty::addExtension()` -- Full support for ternary `{$test ? $a : $b}` and `{$var ?: $alternative}` [#881](https://github.com/smarty-php/smarty/issues/881) +- Added a new way to extend Smarty functionality using `Smarty::addExtension()`. Please see the docs for more information. +- Custom tags can accept positional parameters, so you can write a block compiler that support this: `{trans "Jack" "dull boy"}All work and no play makes %s a %s.{/trans}` [#164](https://github.com/smarty-php/smarty/issues/164) +- Full support for ternary operator: `{$test ? $a : $b}` and `{$var ?: $alternative}` [#881](https://github.com/smarty-php/smarty/issues/881) ### Changed - All Smarty code is now in the \Smarty namespace. For simple use-cases, you only need to add @@ -19,11 +20,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Template variable scope bubbling has been simplified and made more consistent. The global scope now equals the Smarty scope in order to avoid global state side effects. Please read the documentation for more details. -- Lexers and Parsers PHP files are no longer under version control, but generated from sources (.y and .plex) +- Lexers and Parsers PHP files are reliably generated from sources (.y and .plex) using the make file - Smarty now always runs in multibyte mode, using `symfony/polyfill-mbstring` if required. Please use the multibyte extension for optimal performance. - Smarty no longer calls `mb_internal_encoding()` and doesn't check for deprecated `mbstring.func_overload` ini directive [#480](https://github.com/smarty-php/smarty/issues/480) - Generated `