Torann / gulp-snazzy-twig

JavaScript implantation of Skosh's Twig templating system for use with Gulp.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gulp Snazzy Twig

JavaScript implantation of Skosh's Twig templating system for use with Gulp.

Install

$ npm install gulp-snazzy-twig --save

Example

var gulp = require('gulp'),
    twig = require('gulp-snazzy-twig');

gulp.task('compile', function () {
    return gulp.src('src/html/**/*.twig')
        .pipe(twig({
            data: {
                title: 'Gulp and Twig',
                benefits: [
                    'Fast',
                    'Flexible',
                    'Secure'
                ]
            }
        }))
        .pipe(gulp.dest('./'));
});

About

JavaScript implantation of Skosh's Twig templating system for use with Gulp.

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 100.0%