"page": {
"view": "mockup",
"bg": "gradient",
"buttons": "two"
},
gulp.task('twig', function() {
return gulp.src('app/**/*.twig').
pipe(data(function(file) {
return JSON.parse(fs.readFileSync('app/options.json'));
})).
pipe(twig()).
pipe(gulp.dest('public'));
});
{% include "layouts/contents/" ~ page.view ~ ".twig" %}