gulp-twig icon indicating copy to clipboard operation
gulp-twig copied to clipboard

Allow specifying custom twig instance

Open iby opened this issue 9 years ago • 0 comments
trafficstars

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.

iby avatar Mar 20 '16 09:03 iby