From 200b0a265413a754082626ac5dbe3bd032df3c06 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 22 Dec 2023 23:00:02 -0700 Subject: [PATCH] Add a stringifier for debug data in the templates --- module/handlebars.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/handlebars.mjs b/module/handlebars.mjs index 6d07528..95152ce 100644 --- a/module/handlebars.mjs +++ b/module/handlebars.mjs @@ -10,7 +10,8 @@ export async function registerHandlebarsHelpers() { Handlebars.registerHelper({ "dotdungeon-array": createArray, "dotdungeon-toFriendlyDuration": toFriendlyDuration, - "dotdungeon-objectValue": objectValue + "dotdungeon-objectValue": objectValue, + "dotdungeon-stringify": JSON.stringify, }); };