kirbysayshi / vash

Vash, the 60 billion double-dollar template-maker. Razor syntax, for JavaScript templates
Other
524 stars 60 forks source link

Incorrect angle brackets handling #111

Closed mixaildudin closed 6 years ago

mixaildudin commented 7 years ago

Hello. I've just come across the problem which stopped me for a couple of minutes to figure out the reason. Here is the template's code similar to which I have:

@{
    var a = 1;
    var b = 2;
}

@if ((a + b) > 0) {
    <span>Some text</span>
}

This gives me an error saying that '>' is an unexpected token. However, if I remove the inner brackets it works just perfectly. Thank you.

kirbysayshi commented 7 years ago

Definitely a bug, thanks for the report!

kirbysayshi commented 6 years ago

Should be fixed in v0.12.3