Update Changelog.md
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 22s

This commit is contained in:
Stephen Seo 2024-11-21 14:06:09 +09:00
parent 82693bfa3e
commit 3fc301cde5

View file

@ -4,16 +4,17 @@
Implemented "IF", "ELSEIF", "ELSE", "ENDIF", and "INDEX" for templates. Implemented "IF", "ELSEIF", "ELSE", "ENDIF", and "INDEX" for templates.
IF is used like: `{{{!IF Variable==SomeString}}}`. IF is used like: `{{{!IF Variable==SomeString}}}`.
ELSEIF is used like: `{{{!ELSEIF Variable==AnotherString}}}`. ELSEIF is used like: `{{{!ELSEIF Variable==AnotherString}}}`.
ELSE is used like: `{{{!ELSE}}}`. ELSE is used like: `{{{!ELSE}}}`.
ENDIF is used like: `{{{!ENDIF}}}`. ENDIF is used like: `{{{!ENDIF}}}`.
INDEX is used like: `{{{!INDEX ArrayVar[2]}}}`. INDEX is used like: `{{{!INDEX ArrayVar[2]}}}`.
Implemented "FOREACH" and "ENDFOREACH" for templates. Implemented "FOREACH" and "ENDFOREACH" for templates.
FOREACH is used like: FOREACH is used like:
PATH=/
HTML=''' HTML='''
{{{!FOREACH ArrayVar}}} {{{!FOREACH ArrayVar}}}
{{{ArrayVar}}} {{{ArrayVar}}}
@ -24,6 +25,7 @@ FOREACH is used like:
For multiple variables to expand in FOREACH: For multiple variables to expand in FOREACH:
PATH=/
HTML=''' HTML='''
{{{!FOREACH ArrayVar!ArrayVarSecond!ArrayVarThird}}} {{{!FOREACH ArrayVar!ArrayVarSecond!ArrayVarThird}}}
{{{ArrayVar}}} {{{ArrayVar}}}