I have been following this thread, though not too closely so I may have missed
some of the following points.
I’m happy to clarify them.
- My first impression is HAML is so “leading edge” that current editors don’t
have any support for it yet.
yes, wysiwyg editors have absolutely zero support. However, every
designer I know has dropped wysiwyg for a powerful toolkit of
in-browser css editors and etc.
I’d welcome someone to write that, but its not something any of the
designers I know using this require (or have asked for).
- Although RHTML isn’t “special” or “better” than ASP, JSP and the likes. However,
besides good compatibility, vanilla HTML do not need further processing. In HAML
just about every line needs to be transformed (HAML -> HTML or whatever). This
beg the question of performance. Are there performance issues we should be concerned
about?
It is slower. And you are right that it will always be a bit slower.
However, DBs remain the bottleneck in producing a page, not rendering.
While RHTML may be 2% of the render-time for a certain page, HAML is
about 3-4% of the time. That’s absolutely acceptable in my mind when
DBs take up 85% and are still the actual slowdowns.
Caching isn’t implemented yet, but it will be soon. (Patches welcome!)
- HAML perhaps may be easily learned but I wonder how well this works in practice.
It is another layer of abstraction web designers/authors will need to deal with. I am not
sure how well HAML will be accepted in their world.
Every designer that I know that has used it “in the real world” won’t
work without it now. They refuse to use anything else. Not
coder-designers, just designers.
HAML makes it much easier for a designer to parse in their mind what
is going on because of the syntax and etc. If statements, loops,
blocks, and hand-coded XHTML is probably the worst thing for a
designer to have to deal with. They should only care about
understanding the structure in the DOM.
We at unspace interactive have been using this successfully in all of
our projects over the past 3 months. It wasn’t introduced after it was
created. We held it back to give it its paces and to see how it worked
out. There is a reason that we flew across the world to introduce it
at RailsConf Europe. Its because it works in a real-life situation and
produces great code with very little overhead.
Our goal is to deliver value to our clients, and HAML helps us
accomplish that.
It works. Period.
-hampton.
PS: Though, we are always improving!!! It isn’t finished yet. But,
now is the world’s chance to make improvements and to make it kick
even more ass than we could do internally.