feat: hel: render without execute

This commit is contained in:
2025-04-19 20:02:10 +00:00
parent 10a0a08dcd
commit 2229cf072b
13 changed files with 359 additions and 88 deletions

View File

@@ -603,11 +603,11 @@ struct Json {
RESULT(Json, Json);
#define json_parse(arena, s) json_parse__(__FILE__, __func__, __LINE__, arena, s)
Json *json_parse__(const char* file, const char* func, int line, Arena *arena, const char **s);
#define json_parse(arena, s) json_parse__(__FILE__, __func__, __LINE__, arena, s)
#define json_to_string(arena, item) json_to_string__(__FILE__, __func__, __LINE__, arena, item)
char *json_to_string__(const char* file, const char* func, int line, Arena *arena, const Json * const item);
#define json_to_string(arena, item) json_to_string__(__FILE__, __func__, __LINE__, arena, item)
#define json_to_string_with_opts(arena, item, raw) json_to_string_with_opts__(__FILE__, __func__, __LINE__, arena, item, raw)
char *json_to_string_with_opts__(const char* file, const char* func, int line, Arena *arena, const Json * const item, JsonRawOpt raw);

View File

@@ -43,7 +43,7 @@
" struct TemplateSectionValue section = {\n" \
" iterator = %p \"item\",\n" \
" collection = %p \"items\",\n" \
" body = {\n" \
" struct TemplateNode body = {\n" \
" enum type = TEXT 0 ,\n" \
" union TemplateValue value = {\n" \
" struct TemplateTextValue text = {\n" \