From: Marnen Laibow-Koser Date: 2009-12-12T23:23:24+09:00 Subject: Re: which template for ruby-begin project? Brian Candler wrote: [...] > For generating (X)HTML I use HAML - you'll either love it or hate it. I > love it because my templates are tiny, I never have to close any tags, > and I'm always guaranteed well-formed XML. Unfortunately, you don't want well-formed XML for Web apps -- you want well-formed HTML4. XHTML never quite fulfilled its promise, and is not really supported in IE. (No, serving it as HTML is not the answer -- the syntaxes are just incompatible enough.) I used to serve XHTML from Web apps, but I've changed them to HTML now that I understand the problems. Fortunately, with Haml, this is just a question of tweaking an option or two. With Rails, you also need the html_output plugin to get the helpers playing along; I'm not sure about Sinatra. Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.