From: nishi Date: Fri, 19 Apr 2024 06:19:13 +0000 (+0000) Subject: add some op to template X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=342e1475bd1196d96182d5d0881fdd9369a6ed62;p=mandshurica.git add some op to template git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@39 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- diff --git a/Mandshurica/template.c b/Mandshurica/template.c index f91ae0b..e08c0d6 100644 --- a/Mandshurica/template.c +++ b/Mandshurica/template.c @@ -36,11 +36,11 @@ #include "mandshurica.h" #include -#include #include #include #include #include +#include char* mandshurica_parse_template(const char* data) { char* webroot = mandshurica_get_param("HTTPRoot"); @@ -103,6 +103,11 @@ char* mandshurica_parse_template(const char* data) { free(tmp); } else if(strcmp(op, "chdir_webroot") == 0) { chdir(webroot); + } else if(strcmp(op, "comment") == 0) { + /* Do nothing */ + } else if(strcmp(op, "stop") == 0) { + free(tmpl); + break; } free(tmpl);