nex3/haml — Issue #440: feature request: alternative non whitespace sensitive syntax
Author: alexeymuranov
Created: 2011-10-12 09:03:51+00:00
State: open

Probably somebody asked this before, but i didn't find it.
Also, you will be right to quickly close this feature request because it is not an _issue_, and i am not sure myself about benefits of it.
Anyway.

*Wouldn't it be nice to support an alternative non whitespace sensitive syntax for _Haml_, like for _Sass_?*

One of the main reasons i decided to try _Haml_ is that it is a sister project of _Sass_.
I use _Sass_ with the `SCSS` syntax, which seems to be the default and feels "safer" (less chances to introduce an error by a typo).
It is pleasant for me to have similar syntaxes for templates and stylesheets, but they are not as similar as they could be.
Also, it seems that there are more reasons to have non whitespace sensitive syntax for _Haml_ than for _Sass_, because nesting in templates is often deeper than in stylesheets.
I know that this can be resolved with partials, but this solution would seem forced by syntax, rather than by beauty of structure.
I also understand that it can be not straightforward to adapt the `SCSS` syntax to _Haml_ because curly brackets are already used with similar placing but with different meaning.