budibase/packages/string-templates/src/helpers/constants.ts

42 lines
625 B
TypeScript

export const HelperFunctionBuiltin = [
"#if",
"#unless",
"#each",
"#with",
"lookup",
"log",
"blockHelperMissing",
"each",
"helperMissing",
"if",
"unless",
"log",
"lookup",
"with",
]
/**
* full list of supported helpers can be found here:
* https://github.com/Budibase/handlebars-helpers
*/
export const EXTERNAL_FUNCTION_COLLECTIONS = [
"math",
"array",
"number",
"url",
"string",
"comparison",
"object",
"regex",
"uuid",
]
export const HelperFunctionNames = {
OBJECT: "object",
ALL: "all",
LITERAL: "literal",
JS: "js",
}
export const LITERAL_MARKER = "%LITERAL%"