/ packages / string-templates / src / helpers / constants.ts
constants.ts
 1  export const HelperFunctionBuiltin = [
 2    "#if",
 3    "#unless",
 4    "#each",
 5    "#with",
 6    "lookup",
 7    "log",
 8    "blockHelperMissing",
 9    "each",
10    "helperMissing",
11    "if",
12    "unless",
13    "log",
14    "lookup",
15    "with",
16  ]
17  
18  /**
19   * full list of supported helpers can be found here:
20   * https://github.com/Budibase/handlebars-helpers
21   */
22  export const EXTERNAL_FUNCTION_COLLECTIONS = [
23    "math",
24    "array",
25    "number",
26    "url",
27    "string",
28    "comparison",
29    "object",
30    "regex",
31    "uuid",
32  ]
33  
34  export const HelperFunctionNames = {
35    OBJECT: "object",
36    ALL: "all",
37    LITERAL: "literal",
38    JS: "js",
39    DECODE_ID: "decodeId",
40  }
41  
42  export const LITERAL_MARKER = "%LITERAL%"