mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Haml] Document that :html5 is the default format in Rails 3.
Closes gh-236
This commit is contained in:
parent
eba4f68eec
commit
10b823cd38
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
|||
</html>
|
||||
|
||||
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:
|
||||
|
||||
`!!!`
|
||||
|
|
Loading…
Add table
Reference in a new issue