.HAML 文件扩展名
Haml Source Code File
| 开发者 | 不适用 |
| 受欢迎程度 |
3.5 | 4 票 |
什么是 HAML 文件?
Source code file written in Haml, (HTML abstraction markup language); stores a template written in Haml language that is used to generate the HTML of a web document; can be used to replace Ruby template scripts (.ERB files) with its abbreviated syntax.
更多信息
One prominent feature of Haml is that it replaces conventional tags (<>) with the percent sign (%) in order to save time and appear “cleaner.”
An example of simple Haml language and the HTML language generated through the template engine:
Haml:
%html
  %body
    %h1 My First Heading
HTML:
<html>
<body>
<h1>My First Heading</h1>
</body>
</html>
注: You can switch over from ERB to Haml by replacing the "erb" file extension on ERB files with "haml.”