This article contains promotional content. (July 2017) |
Paradigm | Template engine |
---|---|
Designed by | Hampton Catlin |
Developers | Natalie Weizenbaum (past), Norman Clarke, Matt Wildig, Akira Matsuda, Tee Parham[1] |
Stable release | 6.3.0[2]
/ 10 December 2023 |
Implementation language | Ruby |
OS | Cross-platform |
License | MIT License and Unspace Interactive[1] |
Filename extensions | .haml |
Website | 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. 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.
While parsing code 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.[3][4]
Haml can be used at the command line, as a separate Ruby module, or in a Ruby on Rails application.
github
was invoked but never defined (see the help page).