gulp-pug-php
v1.0.0
Published
compile pug php
Downloads
3
Readme
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.