Haml
is very similar to erb
- they're what are known as preprocessors; meaning that your app will process the file as it's rendered
You may benefit from reading up on Haml processing here
Other than that, you may have to look at the Rails source to find out!!