Skip to main content

@elizaos/core v1.0.0-beta.51 / upgradeDoubleToTriple

Function: upgradeDoubleToTriple()

upgradeDoubleToTriple(tpl): any

Convert all double-brace bindings in a Handlebars template to triple-brace bindings, so the output is NOT HTML-escaped.

  • Ignores block/partial/comment tags that start with # / ! >.
  • Ignores the else keyword.
  • Ignores bindings that are already triple-braced.

Parameters​

• tpl: any

Handlebars template source

Returns​

any

Transformed template

Defined in​

packages/core/src/utils.ts:96