Added dynamic pages

This commit is contained in:
Nate Choe
2022-01-31 22:35:46 -06:00
parent 1086edf6d0
commit 7c7460d37f
12 changed files with 1428 additions and 46 deletions

View File

@@ -258,6 +258,13 @@ Sitefile *parseSitefile(char *path) {
ret->content[ret->size].arg = copyString(argv[2]);
if (ret->content[ret->size].arg == NULL)
goto error;
ret->content[ret->size].command = READ;
}
else if (strcmp(argv[0], "exec") == 0) {
ret->content[ret->size].arg = copyString(argv[2]);
if (ret->content[ret->size].arg == NULL)
goto error;
ret->content[ret->size].command = EXEC;
}
else
goto error;