title: How to generate Haml views instead of erb
body: <p>I'm building an app with Rails 2.3.4 and using </p>
  
  <pre><code>script/generate controller home index
  </code></pre>
  
  <p>to generate a controller and home page. I've got Haml installed. I get an erb file:</p>
  
  <pre><code>app/views/home/index.html.erb
  </code></pre>
  
  <p>but I'd prefer to have a Haml file generated instead, like:</p>
  
  <pre><code>app/views/home/index.html.haml
  </code></pre>
  
  <p>I recall Merb would generate .haml views instead of .erb if a haml gem was detected. Is this not available in Rails 2.3.4? I tried</p>
  
  <pre><code>script/generate controller home index --haml
  </code></pre>
  
  <p>but a "--haml" option is invalid.</p>
  
  <p>Of course I can manually change my erb files to haml files but I'd rather have the generator do the work. Call me lazy. Suggestions?</p>