Hello, fellow Hamlites,

One of the features that was suggested very early on in Haml's life was 
to have certain tags that are always self-closed, such as br and meta, 
automatically close themselves in Haml. However, we never got around to 
implementing them... until now. As of revision 453, all meta, img, link, 
script, br, and hr tags (if we missed any, let us know!) will 
automatically be self-closed even if there isn't a slash at the end of 
the definition, as long as they don't have any content.

Of course, if you want to self-close some other tag, the "/" operator is 
still available. In addition, the closed tags can be customized by 
setting Haml::Template.options[:autoclose] to an array of tags that 
should be auto-closed.

As always, this feature is available right now in the Haml trunk, which 
can be installed using "./script/plugin install 
http://svn.hamptoncatlin.com/haml/trunk"; for Rails or "svn co 
svn://hamptoncatlin.com/haml/trunk" standalone. Give it a try.

Enjoy!
- Nathan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to