@sprucelabs/spruce-templates
Version:
Templates used for code generation in skills!
13 lines (12 loc) • 526 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const handlebars_1 = __importDefault(require("handlebars"));
/* Quick way to do an equals check against 2 values */
handlebars_1.default.registerHelper('json', function (arg1) {
//@ts-ignore // TODO how should this work in a typed environment?
const value = JSON.stringify(arg1);
return value;
});