News for hackers. Stuff that matters.
Re:HAML Brings Seaside To Ruby by jraines on Monday January 19, 2009 @07:07PM (#441102)
when you're writing HAML, you're programming more and marking up less . . .If you like programming and you don't like writing markup, then the advantage is you have more fun.

I second that. I used Sinatra and HAML when I wrote Feedstomper.com and the whole thing just felt lighter and more fun than some Rails apps I've written (when I was also using erb).

Granted, the whole concept was lighter than those apps, but still -- I like HAML.

One issue: sometimes you can stumble over javascript: http://b.lesseverything.com/2008/2/19/haml-doesn-t-like-java...

Oh, and if you're interested in Sinatra (and why not, while we're waiting on Mrailerbs), you can learn it from just this page:

http://github.com/bmizerany/sinatra/tree/master

Re:HAML Brings Seaside To Ruby by rufo on Monday January 19, 2009 @07:24PM (#441119)
I read your comment, and was a bit taken aback.. "isn't that what :javascript is for?"

Reading through the comments, though, :javascript was developed specifically in response to that post - it wraps everything indented in script tags, and does the right thing with special characters/etc.

Re:HAML Brings Seaside To Ruby by jraines on Monday January 19, 2009 @07:30PM (#441127)
Ah -- I didn't know about that. I was just putting my script tags in strings. Thanks!

The More You Know

Re:HAML Brings Seaside To Ruby by rufo on Monday January 19, 2009 @07:34PM (#441130)
No problem. I don't think I caught it until I went through the Haml docs a second or third time - lots of handy little tidbits floating around in there I missed the first time.
Re:HAML Brings Seaside To Ruby by cschneid on Monday January 19, 2009 @08:10PM (#441174)
FYI: The new official github for sinatra is at http://github.com/sinatra/sinatra