API support for added template functions (eg. cookies)

This commit is contained in:
Gregory Schier
2025-05-25 20:25:13 -07:00
parent 9d54e40aa8
commit 0a932798a0
14 changed files with 285 additions and 46 deletions

View File

@@ -36,9 +36,6 @@ var plugin = {
}
],
async onRender(ctx, args) {
console.log("COOKIE", args.values.cookie_name);
const cookies = await ctx.cookies.listNames({});
console.log("COOKIES", cookies);
return ctx.cookies.getValue({ name: String(args.values.cookie_name) });
}
}