Haml
Haml (HTML Abstraction Markup Language) is a templating system that is designed to avoid writing inline code in a web document and make the HTML cleaner. Haml gives you the flexibility to have some dynamic content in HTML. Similar to other template systems like eRuby, Haml also embeds some code that gets executed during runtime and generates HTML code in order to provide some dynamic content. In order to run Haml code, files need to have a .haml extension. These files are similar to .erb or .eRuby files, which also help embed Ruby code while developing a web application.
Paradigm | Template engine |
---|---|
Designed by | Hampton Catlin |
Developers | Natalie Weizenbaum (past), Norman Clarke, Matt Wildig, Akira Matsuda, Tee Parham |
Stable release | |
Implementation language | Ruby |
OS | Cross-platform |
License | MIT License and Unspace Interactive |
Filename extensions | .haml |
Website | haml |
While parsing coding comments, Haml uses the same rules as Ruby 1.9 or later. Haml understands only ASCII-compatible encodings like UTF-8 but not UTF-16 or UTF-32 because these are not compatible with ASCII.
Haml can be used at the command line, as a separate Ruby module, or in a Ruby on Rails application.