dynamic expressions in jade/scaml attributes which have Strings containing { } confuse the parser
e.g. this causes the parser to get confused...
- escapeMarkup = false
- val expr = "a() > b()"
td(data-bind={"attr: {class: " + expr + " ? 'green' : 'red'}"})
- escapeMarkup = true
- escapeMarkup = false
- val expr = "a() > b()"
td(data-bind={"attr: {class: " + expr + " ? 'green' : 'red'}"})
- escapeMarkup = true
Leave a comment