ultraq / thymeleafjs

A basic implementation of the Thymeleaf templating engine in JavaScript
Apache License 2.0
52 stars 8 forks source link

Literal Substitution not working #42

Closed rahuldjoshi28 closed 3 years ago

rahuldjoshi28 commented 3 years ago

Hello, I tried to parse template, |How are you ${name}?| but its throwing error Failed to parse I checked source code but couldn't find matching rule for parsing Literal Substition. But in documentation (https://github.com/ultraq/thymeleafjs/issues/20) its mentioned that it is supported

ultraq commented 3 years ago

No, literal substitutions aren't supported yet, and the entry for it in #20 is currently unticked, which is the one that looks like this:

Text operations

  • [x] String concatenation: +
  • [ ] Literal substitutions: |The name is ${name}|