]> git.seodisparate.com - c_simple_http/commitdiff
Update Changelog.md
authorStephen Seo <seo.disparate@gmail.com>
Wed, 20 Nov 2024 07:16:25 +0000 (16:16 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 20 Nov 2024 07:16:25 +0000 (16:16 +0900)
Changelog.md

index 9e3b7036f372cf8ae4858b502e28823279fcb280..f610259d9e45da56790ea6d5fe3944efb153ab0e 100644 (file)
@@ -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.