Skip to content

unable to escape htl expression #170

Description

@tripodsan

the spec states:

Like in JSP (see section "1.2.2 Literal-expression" from the JSP 2.1 Expression Language Specification), to escape an expression (the ${), it can be prefixed it with a backslash \${)).

but this doesn't work:

    ${"<div>\${currentNode.path}</div>" @ context = "text"}

gives:

TypeError: Cannot destructure property `plugin` of 'undefined' or 'null'.

workaround: use unicode escape:

    ${"<div>\u0024{currentNode.path\u007d</div>" @ context = "text"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions