1 | [![Build Status](https://travis-ci.org/phated/gulp-jade.png?branch=master)](https://travis-ci.org/phated/gulp-jade)
|
2 |
|
3 | ## Information
|
4 |
|
5 | <table>
|
6 | <tr>
|
7 | <td>Package</td><td>gulp-jade</td>
|
8 | </tr>
|
9 | <tr>
|
10 | <td>Description</td>
|
11 | <td>Compile Jade templates</td>
|
12 | </tr>
|
13 | <tr>
|
14 | <td>Node Version</td>
|
15 | <td>≥ 0.8</td>
|
16 | </tr>
|
17 | </table>
|
18 |
|
19 | ## Usage
|
20 |
|
21 | Compile to HTML
|
22 |
|
23 | ```javascript
|
24 | var jade = require('gulp-jade');
|
25 |
|
26 | gulp.task('templates', function() {
|
27 | gulp.files('./lib/*.jade')
|
28 | .pipe(jade())
|
29 | .pipe(gulp.folder('./dist/'))
|
30 | });
|
31 | ```
|
32 |
|
33 | Compile to JS
|
34 |
|
35 | ```javascript
|
36 | var jade = require('gulp-jade');
|
37 |
|
38 | gulp.task('templates', function() {
|
39 | gulp.files('./lib/*.jade')
|
40 | .pipe(jade({
|
41 | client: true
|
42 | }))
|
43 | .pipe(gulp.folder('./dist/'))
|
44 | });
|
45 | ```
|
46 |
|
47 | ## LICENSE
|
48 |
|
49 | (MIT License)
|
50 |
|
51 | Copyright (c) 2013 Blaine Bublitz
|
52 |
|
53 | Permission is hereby granted, free of charge, to any person obtaining
|
54 | a copy of this software and associated documentation files (the
|
55 | "Software"), to deal in the Software without restriction, including
|
56 | without limitation the rights to use, copy, modify, merge, publish,
|
57 | distribute, sublicense, and/or sell copies of the Software, and to
|
58 | permit persons to whom the Software is furnished to do so, subject to
|
59 | the following conditions:
|
60 |
|
61 | The above copyright notice and this permission notice shall be
|
62 | included in all copies or substantial portions of the Software.
|
63 |
|
64 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
65 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
66 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
67 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
68 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
69 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
70 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|