From 10bf88ec3e2371178568cf591b05d6c06bea958e Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Wed, 20 Nov 2024 16:16:25 +0900 Subject: [PATCH] Update Changelog.md --- Changelog.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Changelog.md b/Changelog.md index 9e3b703..f610259 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,21 @@ ELSE is used like: `{{{!ELSE}}}`. ENDIF is used like: `{{{!ENDIF}}}`. INDEX is used like: `{{{!INDEX ArrayVar[2]}}}`. +Implemented "FOREACH" and "ENDFOREACH" for templates. + +FOREACH is used like: + + HTML=''' + {{{!FOREACH ArrayVar}}} + {{{ArrayVar}}} + {{{!ENDFOREACH}}}''' + ArrayVar=FirstValue + ArrayVar=SecondValue + ArrayVar=ThirdValue + +Implemented nestable "IF" and "FOREACH" expressions in templates. In other +words, there can be `{{{!IF}}}` inside other IF/FOREACH blocks, and vice versa. + ## Version 1.3 Fix internal erronous buffer declaration. -- 2.49.0