|
It is compiled into XHTML, similarly to ERB, and attempts to fix many flaws in templating engines like explicitly coding HTML into the template.
Haml itself is a description of the HTML, with code to generate dynamic content.
It functions as a replacement for inline page templating systems such as PHP, ASP, and ERB.
Example:
The #foo Hello World! line of code will output this HTML line of code: <div id="foo">Helo World!</div>
Haml automatically handled the end tag and tag defining. More details on how to quickly create HTML code through Haml for Ruby apps can be found in the documentation.
For CSS stylings, SASS does the same thing as Haml does for HTML. SASS is bundled with Haml by default.
What's New in This Release: [ read full changelog ]
· Fixed Erubis handler for compatibility with Tilt 1.4.x, too.
· Small performance optimization for html_escape.
· Documentation fixes.
Via: HAML 4.0.3
0 Comment:
Post a Comment