mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 18:41:21 +00:00
chore: switch templating engine away from mustache
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import ldapjs from "ldapjs";
|
||||
import ldif from "ldif";
|
||||
import mustache from "mustache";
|
||||
import { compile } from "handlebars";
|
||||
import { customAlphabet } from "nanoid";
|
||||
import { z } from "zod";
|
||||
|
||||
@@ -40,7 +40,8 @@ const generateLDIF = ({
|
||||
EncodedPassword: encodePassword(password)
|
||||
};
|
||||
|
||||
const renderedLdif = mustache.render(ldifTemplate, data);
|
||||
const renderTemplate = compile(ldifTemplate);
|
||||
const renderedLdif = renderTemplate(data);
|
||||
|
||||
return renderedLdif;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user