Love affair with HAML

2 views
Skip to first unread message

ras...@gmail.com

unread,
Dec 6, 2007, 1:30:05 AM12/6/07
to Haml
It's torturous, yet I can't seem to pull away. But we have
differences...I am a lover of tabs, and HAML cannot do without
spaces...will we ever see eye to eye?

(I'd love to see HAML move to a parser that can take the double-space
and replace it with tab. Feasable?)

Nathan Weizenbaum

unread,
Dec 6, 2007, 1:41:57 AM12/6/07
to ha...@googlegroups.com
We'd like to make the input and output tabulation configurable
eventually. It's tricky because there's a significant amount of
two-space-specific logic that goes on with stuff like input validation
and filter reading. But eventually, maybe.

In the meantime, learn to love character 32 ;-).

- Nathan

Nthalk

unread,
Jan 16, 2008, 1:43:14 AM1/16/08
to Haml
I also cannot stand the wasted second keystroke.

It kind of flies in the face of the DRY philosophy.

Please, allow tabs.

Daniel N

unread,
Jan 16, 2008, 4:32:12 AM1/16/08
to ha...@googlegroups.com
I just set my editor to use soft tabs with 2 spaces...  I still use the tab key but I get spaces...

just my 0.02

-Daniel

Hampton

unread,
Jan 16, 2008, 9:12:04 AM1/16/08
to ha...@googlegroups.com
Its in the official Haml instructions to set soft-tabs... which is the
Rails default and recommended. And, I'm pretty sure is also the Merb
default and recommended.

Two spaced "soft tabs" is recommended by most Rubyists.

I like this article on the topic. http://www.jwz.org/doc/tabs-vs-spaces.html

-hampton.

jordanisip

unread,
Jan 17, 2008, 7:11:52 PM1/17/08
to Haml
If you use textmate you can set the amount of spaces your tab key will
use (called soft tabs) at the bottom of the window. As mentioned
before, Ruby/Rails gurus recommend 2 spaces per "tab" - which is
probably why HAML/SASS is two spaces.

On Jan 16, 6:12 am, Hampton <hcat...@gmail.com> wrote:
> Its in the official Haml instructions to set soft-tabs... which is the
> Rails default and recommended. And, I'm pretty sure is also the Merb
> default and recommended.
>
> Two spaced "soft tabs" is recommended by most Rubyists.
>
> I like this article on the topic.http://www.jwz.org/doc/tabs-vs-spaces.html
>
> -hampton.

Nathan Weizenbaum

unread,
Jan 17, 2008, 7:18:23 PM1/17/08
to ha...@googlegroups.com
Precisely.

ras...@gmail.com

unread,
Feb 12, 2008, 1:04:45 PM2/12/08
to Haml
Thanks for the replies.

I am in the "totally disagree" camp with tabs vs spaces. At the end of
the day, tabs are one key to add, one key to remove, and that helps
speed things up. It's kinda weird relying on your software to handle
tabs as spaces, considering the argument for spaces over tabs has to
do with software handling of them. Patch for a patch?

I'd really like to see the option for tabs in HAML/SASS.

-Ras the tab lover. :)
Reply all
Reply to author
Forward
0 new messages