Add a stringifier for debug data in the templates

This commit is contained in:
Oliver-Akins 2023-12-22 23:00:02 -07:00
parent f68ea6cd96
commit 200b0a2654

View file

@ -10,7 +10,8 @@ export async function registerHandlebarsHelpers() {
Handlebars.registerHelper({ Handlebars.registerHelper({
"dotdungeon-array": createArray, "dotdungeon-array": createArray,
"dotdungeon-toFriendlyDuration": toFriendlyDuration, "dotdungeon-toFriendlyDuration": toFriendlyDuration,
"dotdungeon-objectValue": objectValue "dotdungeon-objectValue": objectValue,
"dotdungeon-stringify": JSON.stringify,
}); });
}; };