compatibility with haml 4.0 and higher.