You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* adds pug tags to list
* updates tag test files to include pug
* updates inject tests to include pug files
* adds fixtures and expected results for pug files
* adds pug extensions for transform
* updates transform tests to include pug
* updates doc to include pug
Copy file name to clipboardExpand all lines: README.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
`gulp-inject` takes a stream of source files, transforms each file to a string and injects each transformed string into placeholders in the target stream files. See [Basic usage](#basic-usage) and [More examples](#more-examples) below.
8
8
9
-
Default [transforms](#optionstransform) and [placeholders](#optionsstarttag) exists for injecting files into `html`, `jade`, `jsx` , `less`, `slm`, `haml` and `sass` / `scss` files.
9
+
Default [transforms](#optionstransform) and [placeholders](#optionsstarttag) exists for injecting files into `html`, `jade`, `pug`, `jsx` , `less`, `slm`, `haml` and `sass` / `scss` files.
10
10
11
11
**Note:** As of `gulp-inject` v4.0.0, NodeJS v4 or above is required. To use `gulp-inject` for older versions of Node install a specific version: `npm install gulp-inject@3`.
12
12
@@ -630,6 +630,7 @@ A function dependent on target file type and source file type that returns:
630
630
* html as target: `<!-- {{name}}:{{ext}} -->`
631
631
* haml as target: `-# {{name}}:{{ext}}`
632
632
* jade as target: `//- {{name}}:{{ext}}`
633
+
* pug as target: `//- {{name}}:{{ext}}`
633
634
* jsx as target: `{/* {{name}}:{{ext}} */}`
634
635
* slm as target: `/ {{name}}:{{ext}}`
635
636
* less as target: `/* {{name}}:{{ext}} */`
@@ -655,6 +656,7 @@ A function dependent on target file type and source file type that returns:
655
656
* html as target: `<!-- endinject -->`
656
657
* haml as target: `-# endinject`
657
658
* jade as target: `//- endinject`
659
+
* pug as target: `//- endinject`
658
660
* jsx as target: `{/* endinject */}`
659
661
* slm as target: `/ endinject`
660
662
* less as target: `/* endinject */`
@@ -707,6 +709,17 @@ The same as for injecting into `html` above with [`options.selfClosingTag`](#opt
0 commit comments