Slim
- Upsides
- Less to type
- "Clean" like Ruby, especially attribute interpolation
- Downsides
- ERB maps more naturally to HTML
- Line breaks harder
gem 'slim-rails'
h1 Content
| Literal text.
div class="foo #{var}" id=var Content
= render "output"
- if foo?
p It's true
- else
p It's false
Slapdash