TutsPlus - Choose a Ruby Template Engine: ERB vs. Haml
.MP4, AVC, 1000 kbps, 1280x720 | English, AAC, 64 kbps, 2 Ch | 10 mins | 86 MB
Instructor: José Mota
The default templating language in Ruby on Rails is ERB. ERB has a simple syntax for mixing HTML and Ruby commands, but it can be somewhat verbose. Haml is a very popular alternative which has a condensed syntax for expressing HTML.
In this Coffee Break Course, Envato Tuts+ instructor José Mota will compare Haml and ERB. Youll learn about the strengths and weaknesses of each, in order to help you choose between them. Youll also learn about an online tool that you can use to translate from Haml to plain ERB.