simon-dt / gulp-twig

Twig plugin for gulp.js, The streaming build system. Looking for maintainer or collaborators. See wiki
https://github.com/zimmen/gulp-twig/wiki/Looking-for-maintainer-or-collaborator(s)
MIT License
62 stars 33 forks source link

Allow specifying custom twig instance #25

Open iby opened 8 years ago

iby commented 8 years ago

Thanks for the great plugin! Small feature request. I have a pre-configured twig instance with custom extensions. Ideally I want to reuse that rather than configuring a new one via the plugin.

var twig = require('twig');
var gulpTwig = require('gulp-twig');

gulpTwig({twig:twig, data: …});

This is a similar feature request to one found in gulp-sequence – it allows to reuse an existing gulp instance instead of requiring it's own.