test(hmpl): render interpolation tags

This commit is contained in:
2025-03-22 14:56:03 +00:00
parent aeea41b0e1
commit 546a35f1d2
12 changed files with 146 additions and 30 deletions

View File

@@ -5,14 +5,14 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "chectic.h"
#include "hectic.h"
void init_cjson_with_arenas(Arena *arena);
char *eval(Arena *arena, const Json * const context, const char * const key);
/* Modified: text is passed by reference so we can update it and free old allocations */
void render_template_placeholders(Arena *arena, char **text_ptr, Json *context, const char * const prefix);
void hmpl_render_interpolation_tags(Arena *arena, char **text_ptr, Json *context, const char * const prefix);
void render_template_with_arena(Arena *arena, char **text, const Json * const ccontext);