Commit graph

8 commits

Author SHA1 Message Date
229e3a330f Impl. ".*_FILE" variables for templates
If there exists a "{{{something_FILE}}}" (a variable ending with
"_FILE"), then the loaded variable will be treated as a filename and its
contents will be put in the html template.
2024-09-05 14:02:25 +09:00
e458c6e87b config parsing: Handle when config has no endline
Put duplicate code into a macro/defines function.
2024-09-04 17:37:16 +09:00
2d96295555 Test using "HTML_FILE" var, fixes 2024-09-04 17:22:44 +09:00
1d5fb6bbbd Minor formatting fix 2024-09-04 15:33:47 +09:00
2f5ea544e5 Set up tests for http_template, fixes 2024-09-04 15:26:20 +09:00
f5507c8412 Move config-related code from http.c to config.c
Also make config-related code more generic and improve unit tests of
config parsing.
2024-08-31 16:48:24 +09:00
edffbf0656 Cleanup usage of third-party headers 2024-08-31 14:43:53 +09:00
b4a56a7918 WIP Impl. config file parsing for http templates
TODO:
    Still need to test "HTML_FILE".
    Response to HTTP request.
2024-08-30 18:11:03 +09:00