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.

Haml
ParadigmTemplate engine
Designed byHampton Catlin
DevelopersNatalie Weizenbaum (past), Norman Clarke, Matt Wildig, Akira Matsuda, Tee Parham
Stable release
6.3.0  / 10 December 2023 (10 December 2023)
Implementation languageRuby
OSCross-platform
LicenseMIT License and Unspace Interactive
Filename extensions.haml
Websitehaml.info

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.

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.