UNPKG

1.81 kBMarkdownView Raw
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
21Compile to HTML
22
23```javascript
24var jade = require('gulp-jade');
25
26gulp.task('templates', function() {
27 gulp.files('./lib/*.jade')
28 .pipe(jade())
29 .pipe(gulp.folder('./dist/'))
30});
31```
32
33Compile to JS
34
35```javascript
36var jade = require('gulp-jade');
37
38gulp.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
51Copyright (c) 2013 Blaine Bublitz
52
53Permission is hereby granted, free of charge, to any person obtaining
54a copy of this software and associated documentation files (the
55"Software"), to deal in the Software without restriction, including
56without limitation the rights to use, copy, modify, merge, publish,
57distribute, sublicense, and/or sell copies of the Software, and to
58permit persons to whom the Software is furnished to do so, subject to
59the following conditions:
60
61The above copyright notice and this permission notice shall be
62included in all copies or substantial portions of the Software.
63
64THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
65EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
66MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
67NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
68LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
69OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
70WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.