1.0.0 • Published 6 years ago

gulp-pug-php v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

This plugin not tested

This is pug fork of gulp-jade-php

Usage

var jade = require('gulp-pug-php');

gulp.task('templates', function() {
  gulp.src('./views/**/*.pug')
    .pipe(pug({
        locals: {
          title: 'OMG THIS IS THE TITLE'
        }
     }))
     .pipe(gulp.dest('./dist'));
});

Options

This module based on gulp-pug, os it supports everything options of gulp-pug README.

Also you can customize the extension of the outputted files. By default the extension will be .php, but you can pass extension: '.phtml' to generate phtml files.