Closed sixtyfive closed 7 years ago
At least it's intentional for Hamlit because it intends to be compatible with Haml. But it's considered a bug in Haml https://github.com/haml/haml/issues/815.
Hamlit uses the same parser as Haml and this is parser issue. We need to fix this in Haml first. Hamlit basically backports it from Haml. Closing in favor of https://github.com/haml/haml/issues/815.
Results in:
Hamlit::HamlSyntaxError - Got "else" with no preceding "if"
. It's not a big problem, but it'd have been nice to have those comments there like that. (And yes, I know that I should be using partials here, it's really just something that would've been nice if it was possible).