aboutsummaryrefslogtreecommitdiff
path: root/src/templating/templating_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-05-11 01:16:53 +0200
committerChristian Grothoff <christian@grothoff.org>2023-05-11 01:16:53 +0200
commitec8ad2e3b3f1298a49ab9592babc0a15c2053e54 (patch)
tree30b92aa8bfcaba32d9626614ff3516b59d5b8723 /src/templating/templating_api.c
parent0dd0fff17d0802f48bfab0bac498968abc8a59cf (diff)
downloadexchange-ec8ad2e3b3f1298a49ab9592babc0a15c2053e54.tar.xz
update mustach library
Diffstat (limited to 'src/templating/templating_api.c')
-rw-r--r--src/templating/templating_api.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/templating/templating_api.c b/src/templating/templating_api.c
index 4bd7c5fe7..9261bde79 100644
--- a/src/templating/templating_api.c
+++ b/src/templating/templating_api.c
@@ -180,10 +180,12 @@ TALER_TEMPLATING_fill (const char *tmpl,
int eno;
if (0 !=
- (eno = mustach_jansson (tmpl,
- (json_t *) root,
- (char **) result,
- result_size)))
+ (eno = mustach_jansson_mem (tmpl,
+ 0, /* length of tmpl */
+ (json_t *) root,
+ Mustach_With_NoExtensions,
+ (char **) result,
+ result_size)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"mustach failed on template with error %d\n",
@@ -237,10 +239,12 @@ TALER_TEMPLATING_build (struct MHD_Connection *connection,
GNUNET_free (static_url);
}
if (0 !=
- (eno = mustach_jansson (tmpl,
- (json_t *) root,
- &body,
- &body_size)))
+ (eno = mustach_jansson_mem (tmpl,
+ 0,
+ (json_t *) root,
+ Mustach_With_NoExtensions,
+ &body,
+ &body_size)))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"mustach failed on template `%s' with error %d\n",