Skip to content

Commit

Permalink
Update docs for default doctype (now HTML5)
Browse files Browse the repository at this point in the history
Fixes issue #701
  • Loading branch information
nicholasbs committed Jul 10, 2012
1 parent 4efd475 commit 12be753
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions Readme.md
Expand Up @@ -50,7 +50,7 @@
- code is escaped by default for security
- contextual error reporting at compile & run time
- executable for compiling jade templates via the command line
- html 5 mode (using the _!!! 5_ doctype)
- html 5 mode (the default doctype)
- optional memory caching
- combine dynamic and static tag classes
- parse tree manipulation via _filters_
Expand Down Expand Up @@ -608,25 +608,19 @@ To add a doctype simply use `!!!`, or `doctype` followed by an optional value:
!!!
```

Will output the _transitional_ doctype, however:

```jade
!!! 5
```

or

```jade
!!! html
doctype
```

or
Will output the _html 5_ doctype, however:

```jade
doctype html
!!! transitional
```

Will output the _html 5_ doctype.
Will output the _transitional_ doctype.

Doctypes are case-insensitive, so the following are equivalent:

Expand All @@ -652,8 +646,8 @@ Below are the doctypes defined by default, which can easily be extended:
```js
var doctypes = exports.doctypes = {
'5': '<!DOCTYPE html>',
'default': '<!DOCTYPE html>',
'xml': '<?xml version="1.0" encoding="utf-8" ?>',
'default': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
Expand Down

0 comments on commit 12be753

Please sign in to comment.