You don't really "need" to use haml for layouts or CoffeeScript for JS, just
like you don't really "need" to use Ruby to make a dynamic website. Most
people do it because it makes bluebirds sing and puts a spring in their
step.
That being said, there are a few snags most people seem to run into when
starting with haml, but they are easy to deal with:
- No linebreaks in haml: use view helpers or cells (cells are awesome)
- Inline JavaScript or CSS: use the :javascript, :sass, or :css filters
(or :coffeescript via coffee-filter if you are supercool)
- Formatting body text is a huge pain: use the :textile or :markdown
filters
- Everything else: use :plain or :erb
- Also: #{} interpolation works everywhere!
--
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby