From 3b36078c15f7cc8042f8063be3bd8922f921f30b Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Sat, 4 Jul 2009 15:46:34 -0700 Subject: [PATCH] [Haml] Mention the new attribute syntax in the README. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 464bd3a5..af0eafae 100644 --- a/README.md +++ b/README.md @@ -57,11 +57,15 @@ check out the [YARD documentation](http://haml-lang.com/docs/yardoc). ### Haml The most basic element of Haml -is a shorthand for creating HTML +is a shorthand for creating HTML: %tagname{:attr1 => 'value1', :attr2 => 'value2'} Contents No end-tag is needed; Haml handles that automatically. +If you prefer HTML-style attributes, you can also use: + + %tagname(attr1='value1' attr2='value2') Contents + Adding `class` and `id` attributes is even easier. Haml uses the same syntax as the CSS that styles the document: