Skip to content

IamNotPD/gulp-pug-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 86.3%
  • PHP 13.7%