Migrating to haml

21 views
Skip to first unread message

Edwin Cruz

unread,
Aug 30, 2011, 4:36:14 PM8/30/11
to Fulcrum Devel
Hi all,

We were planning to move current fulcrum erb code to haml, and before
we do that, we'd like to know if it could be accepted when we send the
pull request.

Thoughts ?

--
Edwin Cruz
CrowdInt.com

Malcolm Locke

unread,
Aug 30, 2011, 6:12:16 PM8/30/11
to fulcru...@googlegroups.com
On Tue, Aug 30, 2011 at 01:36:14PM -0700, Edwin Cruz wrote:
> Hi all,
>
> We were planning to move current fulcrum erb code to haml, and before
> we do that, we'd like to know if it could be accepted when we send the
> pull request.
>
> Thoughts ?

Hi Edwin,

I'd actually like to push back on this. One of the things I'm hoping
for is for a good designer to put their hands up and do some work on the
UI.

Whilst I think most designers would probably get HAML, I think it
could represent an unnecessary barrier to potential contributors.

I've accepted a pull request with compass support because I think this
genuinely brings some worthwhile extras, but to me HAML just seems to be
another syntax for html.

However, I'm always willing to listen to a sales pitch :) What do you
think are the advantages of using it, other than less typing?

Malc

Eumir

unread,
Jan 18, 2012, 10:23:45 PM1/18/12
to fulcru...@googlegroups.com
Hi guys,

For a sales pitch:

1. Most designers(the kickass ones anyway), most probably(and actually prefer) already use HAML/SASS/Compass for designing. If they aren't it's pretty easy to let them give us some sort of mockup(PSD?), or even html files(http://html2haml.heroku.com can fix it up quickly).
2. Much faster to code HAML than HTML(even with autocomplete and auto-close tags)
3. Fewer lines :)
4. Easy reference of classes and ids with CSS tags

 e.g. 

 seeing <div class="panel" id="done_column"> vs. #done_column.panel

and comparing it with SCSS file:

#done_column {
}

5. Easier to see the overall layout structure.

<div class="class1">
  <div class="class2">
    <div class="inner-class">
    </div>
  </div>
</div>

vs.

.class1
  .class2
    .inner-class

That said, the only disadvantage of HAML I could think of is it sucks with content as Chris Eppstein(creator of Compass and in core team of SASS) mentions here: http://chriseppstein.github.com/blog/2010/02/08/haml-sucks-for-content/
Reply all
Reply to author
Forward
0 new messages