Closed jcubic closed 3 years ago
<% "<% %>" %>
This should work. In comparison JavaScript template literals have no issue with object literals inside:
`say: ${{toString: () => "hello"}} world`
To fix this, you need a JavaScript parser.
This is what we have literal tags for: https://github.com/mde/ejs/blob/main/docs/syntax.md#literal-tags
This should work. In comparison JavaScript template literals have no issue with object literals inside:
To fix this, you need a JavaScript parser.