ultraq / thymeleafjs

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

Add validation on th:attr syntax #6

Closed ultraq closed 7 years ago

ultraq commented 7 years ago

I recently used th:attr incorrectly, and the error message was cryptic because it came out of JSDOM. The problem was that I failed to supply a left-hand-side attribute name the expected expression. I think some kind of pattern validation and accompanying failed error message would be quite helpful here.