Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Conversation

@deefour
Copy link

@deefour deefour commented Sep 22, 2014

var fileInclude = require('gulp-file-include');

gulp.task('html', function() {
  return gulp.src([ '*.html' ])
             .pipe(fileInclude({
               data: {
                 "title": "Default Page Title"
               }
             })
             .pipe(gulp.dest('public'));
});

The variables can be overridden by individual @@include(...) statements

@@include("index.html", { "title": "The Homepage" })

var fileInclude = require('gulp-file-include');

```javascript
gulp.task('html', function() {
  return gulp.src([ '*.html' ])
             .pipe(fileInclude({
               data: {
                 "title": "Default Page Title"
               }
             })
             .pipe(gulp.dest('public'));
});
```

The variables can be overridden by individual `@@include(...)` statements

```
@@include("index.html", { "title": "The Homepage" })
```
@deefour
Copy link
Author

deefour commented Sep 22, 2014

I'd love to write tests for this, but am unsure how to run them 😦

@coveralls
Copy link

Coverage Status

Coverage decreased (-97.06%) when pulling 18e9e06 on deefour:patch-1 into 6c16b44 on coderhaoxin:master.

@haoxins
Copy link
Owner

haoxins commented Sep 23, 2014

@deefour test failed.

@haoxins haoxins closed this Oct 2, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants