File: doctype.jade

package info (click to toggle)
node-jade 1.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,984 kB
  • ctags: 315
  • sloc: makefile: 4
file content (34 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
extends ../reference.jade

block documentation
  h1 doctype
  .row(data-control='interactive')
    .col-lg-6
      +jade
        :jadesrc
          doctype html
    .col-lg-6
      +html
        :htmlsrc
          <!DOCTYPE html>
  p There are shortcuts for commonly used doctypes:

  dl
    each doctype, key in doctypes
      if key != '5' && key != 'default'
        dt= key
        dd
          pre
            code= doctype

  p You can also use your own literal custom doctype:

  .row(data-control='interactive')
    .col-lg-6
      +jade
        :jadesrc
          doctype html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
    .col-lg-6
      +html
        :htmlsrc
          <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN">