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

@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "chectic.h"
#include "hectic.h"
#include "hmpl.h"
int main(int argc, char *argv[]) {
@@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
text = arena_strdup(&arena, "");
}
render_template_with_arena(&arena, &text, context);
hmpl_render_with_arena(&arena, &text, context);
printf("%s", text);
arena_free(&arena);