Re:I Hate Haml
by marknutter on Tuesday November 16, 2010 @03:03PM
(#1911396)
I'm not sure, I've never tried using it outside of a rails/sinatra app, but I'm pretty sure you can have it generate the proper files for whatever language you're developing in. It ends up just being html, after all. Maybe somebody else has a better answer?
Re:I Hate Haml
by telemachos on Tuesday November 16, 2010 @03:50PM
(#1911594)
There's a command-line version, so presumably you could use it that way, but I've also only ever come across it in the Ruby world.
Re:I Hate Haml
by jameskilton on Tuesday November 16, 2010 @03:13PM
(#1911433)
Yes I do believe haml is built pretty strictly to Ruby. I haven't seen or heard of anything from the project about switching out what interpreter handles interpolation ( - and = ) as well as in-line for attributes:
%div{:class => [ruby code here]}
Re:I Hate Haml
by krainboltgreene on Tuesday November 16, 2010 @03:42PM
(#1911562)
Yes, HAML is directly tied to Ruby.
Although there are PHP ports out there in progress.
There is also a Ruby Discount gem, rdiscount.
Re:I Hate Haml
by xiongchiamiov on Tuesday November 16, 2010 @04:13PM
(#1911698)
A few Python versions, too (two projects that call themselves pyhaml).
So hey, to make something of this discussion: Am I correct in thinking HAML is fairly closely tied to Ruby? I'm quite familiar with Markdown* , but don't use Ruby. As long as we're committing to a given language for an ersatz HTML syntax, I prefer CL-WHO (http://weitz.de/cl-who/) or a similar approach in Lua, JSON, etc.
Also, it doesn't look like there's cross-language support, which is a major advantage for Markdown, JSON, and other such formats.
* My favorite implementation is discount (http://www.pell.portland.or.us/~orc/Code/discount/), which is written in C, quite fast, and has a good test suite and pretty clean API.