File: command-line.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 (53 lines) | stat: -rw-r--r-- 1,218 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
extends ./layout.jade

block content
  .container
    #body
      :markdown
        # Command Line

        ## Installation

        via npm:

            $ npm install jade --global

        ## Usage

            $ jade [options] [dir|file ...]

        ### Options

        ```
        -h, --help         output usage information
        -V, --version      output the version number
        -O, --obj <str>    javascript options object
        -o, --out <dir>    output the compiled html to <dir>
        -p, --path <path>  filename used to resolve includes
        -P, --pretty       compile pretty html output
        -c, --client       compile function for client-side runtime.js
        -D, --no-debug     compile without debugging (smaller functions)
        -w, --watch        watch files for changes and automatically re-render
        ```

        ### Examples

        Translate jade the templates dir:

            $ jade templates

        Create {foo,bar}.html

            $ jade {foo,bar}.jade

        Jade over stdio

            $ jade < my.jade > my.html

        Jade over stdio

            $ echo "h1 Jade!" | jade

        foo, bar dirs rendering to /tmp

            $ jade foo bar --out /tmp