0.1.0 • Published 10 years ago

gulp-renderful v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

gulp-renderful

This package is designed to make the building of static sites easier and more enjoyable. Rather than using ugly PHP includes, you can now use EJS templating (or whatever else you like) backed by Express to render HTML. This allows you to, for example, include view partials with <%- include somepartial.ejs %>.

Example

gulp.task('html', function() {
    gulp.src('src/*.html')
        .pipe(require('../gulp-renderful')())
        .pipe(gulp.dest('./dist'));
});

Options: renderful(options)

engine

Type: object Default: require('ejs').renderFile

Allows you to pass your own rendering engine in, to use instead of EJS.

extensions

Type: array Default: []

When a non-empty array, only files with these extensions will be processed. For more capabilities (e.g. globbing), you can take a look at gulp-if.

data

Type: object Default: {}

Data to be passed into the views.

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago