Commit 0e423cc 1 parent d9e85b5 commit 0e423cc Copy full SHA for 0e423cc
File tree 2 files changed +40
-1
lines changed
2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ language : node_js
2
+ node_js :
3
+ - " 0.10"
4
+ - " 0.11"
Original file line number Diff line number Diff line change 1
1
#gulp-jade-inheritance
2
- [ ![ Build Status] ( https://travis-ci.org/juanfran/gulp-jade-inheritance.svg?branch=master )] ( https://travis-ci.org/juanfran/gulp-jade-inheritance )
2
+ [ ![ Build Status] ( https://travis-ci.org/juanfran/gulp-jade-inheritance.svg?branch=master )] ( https://travis-ci.org/juanfran/gulp-jade-inheritance )
3
+ > Rebuild a jade file with other files that have extended or included those file
4
+
5
+ Inspired by [ jade-inheritance] ( https://github.com/paulyoung/jade-inheritance )
6
+
7
+ ## Install
8
+
9
+ ``` shell
10
+ npm install gulp-jade-inheritance --save-dev
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ` gulpfile.js `
16
+ ``` js
17
+ var jadeInheritance = require (' gulp-jade-inheritance' );
18
+ var jade = require (' gulp-jade' );
19
+
20
+ gulp .task (' jade-inheritance' , function () {
21
+ gulp .src (' /jade/example.jade' )
22
+ .pipe (jadeInheritance ())
23
+ .pipe (jade ());
24
+ });
25
+ ```
26
+
27
+ In this example jade compile ` example.jade ` and all other files that have been extended or included ` example.jade ` .
28
+
29
+
30
+ You can also set the ` basedir ` directory
31
+
32
+ ``` js
33
+ gulp .task (' jade-inheritance' , function () {
34
+ gulp .src (' /jade/example.jade' )
35
+ .pipe (jadeInheritance ({basedir: ' /jade/' }))
36
+ .pipe (jade ());
37
+ });
You can’t perform that action at this time.
0 commit comments