]> git.seodisparate.com - c_simple_http/commit
Impl. extension of template delimeter expressions
authorStephen Seo <seo.disparate@gmail.com>
Mon, 18 Nov 2024 08:07:07 +0000 (17:07 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 18 Nov 2024 08:07:07 +0000 (17:07 +0900)
commit8da223461d14312a3f22df08f48d5a95d84fe721
tree64cacca6104d53d25b769f3dcc13d9a7340e5b8f
parentd9d286c53fa4780bd7fc2c516827ace2e39379ee
Impl. extension of template delimeter expressions

Implemented "IF", "ELSEIF", "ELSE", "ENDIF", and "INDEX" for templates.

IF is used like: `{{{!IF Variable==SomeString}}}`.
ELSEIF is used like: `{{{!ELSEIF Variable==AnotherString}}}`.
ELSE is used like: `{{{!ELSE}}}`.
ENDIF is used like: `{{{!ENDIF}}}`.
INDEX is used like: `{{{!INDEX ArrayVar[2]}}}`.
example_config/example.config
src/helpers.c
src/helpers.h
src/http_template.c
src/test.c