Skip to content

unable to escape htl expression #170

@tripodsan

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"}

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