From 10b823cd3849f553ff4e9fc7f9f72da06687cd37 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Mon, 16 Aug 2010 10:18:13 -0700 Subject: [PATCH] [Haml] Document that :html5 is the default format in Rails 3. Closes gh-236 --- doc-src/HAML_REFERENCE.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc-src/HAML_REFERENCE.md b/doc-src/HAML_REFERENCE.md index 00113f7c..1d4f775a 100644 --- a/doc-src/HAML_REFERENCE.md +++ b/doc-src/HAML_REFERENCE.md @@ -128,7 +128,8 @@ in `environment.rb` in Rails... Available options are: {#format-option} `:format` -: Determines the output format. The default is `:xhtml`. +: Determines the output format. Normally the default is `:xhtml`, + although under Rails 3 it's `:html5`, since that's the Rails 3's default format. Other options are `:html4` and `:html5`, which are identical to `:xhtml` except there are no self-closing tags, the XML prolog is ignored and correct DOCTYPEs are generated. @@ -766,7 +767,7 @@ is compiled to: You can also specify the specific doctype after the `!!!` -When the [`:format`](#format-option) is set to `:xhtml` (the default), +When the [`:format`](#format-option) is set to `:xhtml` (the default except in Rails 3), the following doctypes are supported: `!!!`