https://github.com/assemble/gulp-assemble
Deprecated. Assemble can be used directly with or without gulp.
https://github.com/assemble/gulp-assemble
Last synced: 3 months ago
JSON representation
Deprecated. Assemble can be used directly with or without gulp.
- Host: GitHub
- URL: https://github.com/assemble/gulp-assemble
- Owner: assemble
- License: mit
- Created: 2014-02-04T16:26:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-22T23:21:35.000Z (over 10 years ago)
- Last Synced: 2025-09-26T15:29:17.012Z (9 months ago)
- Language: JavaScript
- Homepage: https://github.com/assemble/assemble
- Size: 97.7 KB
- Stars: 67
- Watchers: 19
- Forks: 7
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Heads up!
This project has been deprecated. [Assemble](https://github.com/assemble/assemble) can be used directly with or without gulp.
## Examples
**Assemble with gulp**
```js
var gulp = require('gulp');
var htmlmin = require('gulp-htmlmin');
var extname = require('gulp-extname');
var assemble = require('assemble');
var app = assemble();
gulp.task('load', function(cb) {
app.partials('templates/partials/*.hbs');
app.layouts('templates/layouts/*.hbs');
app.pages('templates/pages/*.hbs');
cb();
});
gulp.task('assemble', ['load'], function() {
return app.toStream('pages')
.pipe(app.renderFile())
.pipe(htmlmin())
.pipe(extname())
.pipe(app.dest('site'));
});
gulp.task('default', ['assemble']);
```
**Assemble without gulp**
```js
var htmlmin = require('gulp-htmlmin');
var extname = require('gulp-extname');
var assemble = require('assemble');
var app = assemble();
app.task('load', function(cb) {
app.partials('templates/partials/*.hbs');
app.layouts('templates/layouts/*.hbs');
app.pages('templates/pages/*.hbs');
cb();
});
app.task('assemble', ['load'], function() {
return app.toStream('pages')
.pipe(app.renderFile())
.pipe(htmlmin())
.pipe(extname())
.pipe(app.dest('site'));
});
app.task('default', ['assemble']);
```