From 342e1475bd1196d96182d5d0881fdd9369a6ed62 Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 19 Apr 2024 06:19:13 +0000 Subject: [PATCH] add some op to template git-svn-id: file:///raid/svn-main/nishi-mandshurica/trunk@39 f982e544-4a7d-3444-ad1a-fde59a2a69f1 --- Mandshurica/template.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 2.43.0